v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#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 () |
Definition at line 39 of file compilation-cache.h.
|
inline |
Definition at line 41 of file compilation-cache.h.
References CompilationSubCache::generations().
|
inline |
Definition at line 47 of file compilation-cache.h.
References v8::internal::DeleteArray().
void Age | ( | ) |
Definition at line 90 of file compilation-cache.cc.
References Isolate::heap(), and CompilationSubCache::isolate().
Referenced by CompilationCache::MarkCompactPrologue().
void Clear | ( | ) |
Definition at line 116 of file compilation-cache.cc.
References CompilationSubCache::isolate(), and v8::internal::MemsetPointer().
Referenced by CompilationCache::Clear().
|
inline |
Definition at line 79 of file compilation-cache.h.
Referenced by CompilationSubCache::CompilationSubCache(), CompilationCacheScript::Lookup(), CompilationCacheEval::Lookup(), CompilationCacheRegExp::Lookup(), and CompilationSubCache::Remove().
|
inline |
Definition at line 56 of file compilation-cache.h.
References CompilationSubCache::GetTable(), and CompilationSubCache::kFirstGeneration.
Handle< CompilationCacheTable > GetTable | ( | int | generation | ) |
Definition at line 75 of file compilation-cache.cc.
References ASSERT, CompilationCacheTable::cast(), v8::internal::generation(), and CompilationSubCache::isolate().
Referenced by CompilationSubCache::GetFirstTable(), CompilationCacheScript::Lookup(), CompilationCacheEval::Lookup(), CompilationCacheRegExp::Lookup(), and CompilationSubCache::Remove().
|
inlineprotected |
Definition at line 82 of file compilation-cache.h.
Referenced by CompilationSubCache::Age(), CompilationSubCache::Clear(), CompilationSubCache::GetTable(), CompilationSubCache::IterateFunctions(), CompilationCacheScript::Lookup(), CompilationCacheEval::Lookup(), CompilationCacheRegExp::Lookup(), CompilationCacheScript::Put(), CompilationCacheEval::Put(), CompilationCacheRegExp::Put(), and CompilationSubCache::Remove().
void Iterate | ( | ObjectVisitor * | v | ) |
Definition at line 111 of file compilation-cache.cc.
Referenced by CompilationCache::Iterate().
void IterateFunctions | ( | ObjectVisitor * | v | ) |
Definition at line 101 of file compilation-cache.cc.
References Isolate::heap(), and CompilationSubCache::isolate().
Referenced by CompilationCache::IterateFunctions().
void Remove | ( | Handle< SharedFunctionInfo > | function_info | ) |
Definition at line 121 of file compilation-cache.cc.
References v8::internal::generation(), CompilationSubCache::generations(), CompilationSubCache::GetTable(), and CompilationSubCache::isolate().
Referenced by CompilationCache::Remove().
|
inline |
Definition at line 59 of file compilation-cache.h.
References ASSERT, and CompilationSubCache::kFirstGeneration.
Referenced by CompilationCacheScript::Put(), CompilationCacheEval::Put(), and CompilationCacheRegExp::Put().
|
static |
Definition at line 50 of file compilation-cache.h.
Referenced by CompilationSubCache::GetFirstTable(), and CompilationSubCache::SetFirstTable().