V8 Project
|
#include <compilation-cache.h>
Public Member Functions | |
CompilationSubCache (Isolate *isolate, int generations) | |
~CompilationSubCache () | |
Handle< CompilationCacheTable > | GetTable (int generation) |
Handle< CompilationCacheTable > | GetFirstTable () |
void | SetFirstTable (Handle< CompilationCacheTable > value) |
void | Age () |
void | Iterate (ObjectVisitor *v) |
void | IterateFunctions (ObjectVisitor *v) |
void | Clear () |
void | Remove (Handle< SharedFunctionInfo > function_info) |
int | generations () |
Static Public Attributes | |
static const int | kFirstGeneration = 0 |
Protected Member Functions | |
Isolate * | isolate () |
Private Member Functions | |
DISALLOW_IMPLICIT_CONSTRUCTORS (CompilationSubCache) | |
Private Attributes | |
Isolate * | isolate_ |
int | generations_ |
Object ** | tables_ |
Definition at line 16 of file compilation-cache.h.
|
inline |
Definition at line 18 of file compilation-cache.h.
References generations(), and tables_.
|
inline |
Definition at line 24 of file compilation-cache.h.
References v8::internal::DeleteArray(), and tables_.
void v8::internal::CompilationSubCache::Age | ( | ) |
Definition at line 60 of file compilation-cache.cc.
References generations_, v8::internal::Isolate::heap(), isolate(), and tables_.
Referenced by v8::internal::CompilationCache::MarkCompactPrologue().
void v8::internal::CompilationSubCache::Clear | ( | ) |
Definition at line 86 of file compilation-cache.cc.
References generations_, isolate(), v8::internal::MemsetPointer(), and tables_.
Referenced by v8::internal::CompilationCache::Clear().
|
private |
|
inline |
Definition at line 56 of file compilation-cache.h.
References generations_.
Referenced by CompilationSubCache(), v8::internal::CompilationCacheEval::Lookup(), v8::internal::CompilationCacheScript::Lookup(), v8::internal::CompilationCacheRegExp::Lookup(), and Remove().
|
inline |
Definition at line 33 of file compilation-cache.h.
References GetTable(), and kFirstGeneration.
Referenced by v8::internal::CompilationCacheScript::Put(), v8::internal::CompilationCacheEval::Put(), and v8::internal::CompilationCacheRegExp::Put().
Handle< CompilationCacheTable > v8::internal::CompilationSubCache::GetTable | ( | int | generation | ) |
Definition at line 45 of file compilation-cache.cc.
References DCHECK, generations_, isolate(), v8::internal::kInitialCacheSize, v8::internal::HashTable< CompilationCacheTable, CompilationCacheShape, HashTableKey * >::New(), and tables_.
Referenced by GetFirstTable(), v8::internal::CompilationCacheEval::Lookup(), v8::internal::CompilationCacheScript::Lookup(), v8::internal::CompilationCacheRegExp::Lookup(), and Remove().
|
inlineprotected |
Definition at line 59 of file compilation-cache.h.
References isolate_.
Referenced by Age(), Clear(), GetTable(), v8::internal::CompilationCacheScript::HasOrigin(), IterateFunctions(), v8::internal::CompilationCacheEval::Lookup(), v8::internal::CompilationCacheScript::Lookup(), v8::internal::CompilationCacheRegExp::Lookup(), v8::internal::CompilationCacheScript::Put(), v8::internal::CompilationCacheEval::Put(), v8::internal::CompilationCacheRegExp::Put(), and Remove().
void v8::internal::CompilationSubCache::Iterate | ( | ObjectVisitor * | v | ) |
Definition at line 81 of file compilation-cache.cc.
References generations_, and tables_.
Referenced by v8::internal::CompilationCache::Iterate().
void v8::internal::CompilationSubCache::IterateFunctions | ( | ObjectVisitor * | v | ) |
Definition at line 71 of file compilation-cache.cc.
References generations_, v8::internal::Isolate::heap(), isolate(), v8::internal::IterateElements(), and tables_.
Referenced by v8::internal::CompilationCache::IterateFunctions().
void v8::internal::CompilationSubCache::Remove | ( | Handle< SharedFunctionInfo > | function_info | ) |
Definition at line 91 of file compilation-cache.cc.
References generations(), GetTable(), and isolate().
Referenced by v8::internal::CompilationCache::Remove().
|
inline |
Definition at line 36 of file compilation-cache.h.
References DCHECK, generations_, kFirstGeneration, and tables_.
Referenced by v8::internal::CompilationCacheScript::Put(), v8::internal::CompilationCacheEval::Put(), and v8::internal::CompilationCacheRegExp::Put().
|
private |
Definition at line 63 of file compilation-cache.h.
Referenced by Age(), Clear(), generations(), GetTable(), Iterate(), IterateFunctions(), and SetFirstTable().
|
private |
Definition at line 62 of file compilation-cache.h.
Referenced by isolate().
|
static |
Definition at line 27 of file compilation-cache.h.
Referenced by GetFirstTable(), and SetFirstTable().
|
private |
Definition at line 64 of file compilation-cache.h.
Referenced by Age(), Clear(), CompilationSubCache(), GetTable(), Iterate(), IterateFunctions(), SetFirstTable(), and ~CompilationSubCache().