v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <compilation-cache.h>
Public Member Functions | |
CompilationCacheEval (Isolate *isolate, int generations) | |
Handle< SharedFunctionInfo > | Lookup (Handle< String > source, Handle< Context > context, LanguageMode language_mode, int scope_position) |
void | Put (Handle< String > source, Handle< Context > context, Handle< SharedFunctionInfo > function_info, int scope_position) |
Public Member Functions inherited from CompilationSubCache | |
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 () |
Additional Inherited Members | |
Static Public Attributes inherited from CompilationSubCache | |
static const int | kFirstGeneration = 0 |
Protected Member Functions inherited from CompilationSubCache | |
Isolate * | isolate () |
Definition at line 137 of file compilation-cache.h.
|
inline |
Definition at line 139 of file compilation-cache.h.
Handle< SharedFunctionInfo > Lookup | ( | Handle< String > | source, |
Handle< Context > | context, | ||
LanguageMode | language_mode, | ||
int | scope_position | ||
) |
Definition at line 251 of file compilation-cache.cc.
References SharedFunctionInfo::cast(), Isolate::counters(), CompilationSubCache::generations(), CompilationSubCache::GetTable(), CompilationSubCache::isolate(), Handle< T >::null(), v8::internal::NULL, and CompilationCacheEval::Put().
Referenced by CompilationCache::LookupEval().
void Put | ( | Handle< String > | source, |
Handle< Context > | context, | ||
Handle< SharedFunctionInfo > | function_info, | ||
int | scope_position | ||
) |
Definition at line 308 of file compilation-cache.cc.
References CompilationSubCache::isolate(), and CompilationSubCache::SetFirstTable().
Referenced by CompilationCacheEval::Lookup(), and CompilationCache::PutEval().