5 #ifndef V8_OBJECTS_COMPILATION_CACHE_H_ 6 #define V8_OBJECTS_COMPILATION_CACHE_H_ 8 #include "src/objects/hash-table.h" 9 #include "src/objects/js-regexp.h" 12 #include "src/objects/object-macros.h" 20 return key->IsMatch(value);
31 LanguageMode language_mode,
36 static const int kPrefixSize = 0;
37 static const int kEntrySize = 3;
42 InfoCellPair() : shared_(
nullptr), feedback_cell_(
nullptr) {}
44 : shared_(shared), feedback_cell_(feedback_cell) {}
46 FeedbackCell* feedback_cell()
const {
return feedback_cell_; }
49 bool has_feedback_cell()
const {
return feedback_cell_ !=
nullptr; }
50 bool has_shared()
const {
return shared_ !=
nullptr; }
69 :
public HashTable<CompilationCacheTable, CompilationCacheShape> {
79 LanguageMode language_mode,
int position);
93 void Remove(
Object* value);
95 static const int kHashGenerations = 10;
107 #include "src/objects/object-macros-undef.h" 109 #endif // V8_OBJECTS_COMPILATION_CACHE_H_