5 #ifndef V8_COMPILATION_CACHE_H_ 6 #define V8_COMPILATION_CACHE_H_ 8 #include "src/allocation.h" 9 #include "src/objects/compilation-cache.h" 28 generations_(generations) {
29 tables_ = NewArray<Object*>(generations);
35 static const int kFirstGeneration = 0;
42 return GetTable(kFirstGeneration);
45 DCHECK_LT(kFirstGeneration, generations_);
46 tables_[kFirstGeneration] = *value;
63 inline int generations() {
return generations_; }
66 Isolate* isolate() {
return isolate_; }
84 int line_offset,
int column_offset,
87 LanguageMode language_mode);
90 LanguageMode language_mode,
122 LanguageMode language_mode,
int position);
179 LanguageMode language_mode,
207 void MarkCompactPrologue();
218 base::HashMap* EagerOptimizingSet();
221 static const int kSubCacheCount = 4;
223 bool IsEnabled()
const {
return FLAG_compilation_cache && enabled_; }
225 Isolate* isolate()
const {
return isolate_; }
247 #endif // V8_COMPILATION_CACHE_H_