v8
3.25.30(node0.11.13)
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, StrictMode strict_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 145 of file compilation-cache.h.
|
inline |
Definition at line 147 of file compilation-cache.h.
Handle< SharedFunctionInfo > Lookup | ( | Handle< String > | source, |
Handle< Context > | context, | ||
StrictMode | strict_mode, | ||
int | scope_position | ||
) |
Definition at line 269 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 326 of file compilation-cache.cc.
References CompilationSubCache::isolate(), and CompilationSubCache::SetFirstTable().
Referenced by CompilationCacheEval::Lookup(), and CompilationCache::PutEval().