v8
3.14.5(node0.10.28)
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 144 of file compilation-cache.h.
|
inline |
Definition at line 146 of file compilation-cache.h.
Handle< SharedFunctionInfo > Lookup | ( | Handle< String > | source, |
Handle< Context > | context, | ||
LanguageMode | language_mode, | ||
int | scope_position | ||
) |
Definition at line 256 of file compilation-cache.cc.
References SharedFunctionInfo::cast(), Isolate::counters(), v8::internal::generation(), 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 313 of file compilation-cache.cc.
References CompilationSubCache::isolate(), and CompilationSubCache::SetFirstTable().
Referenced by CompilationCacheEval::Lookup(), and CompilationCache::PutEval().