v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <compilation-cache.h>
Public Member Functions | |
CompilationCacheRegExp (Isolate *isolate, int generations) | |
Handle< FixedArray > | Lookup (Handle< String > source, JSRegExp::Flags flags) |
void | Put (Handle< String > source, JSRegExp::Flags flags, Handle< FixedArray > data) |
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 179 of file compilation-cache.h.
|
inline |
Definition at line 181 of file compilation-cache.h.
Handle< FixedArray > Lookup | ( | Handle< String > | source, |
JSRegExp::Flags | flags | ||
) |
Definition at line 335 of file compilation-cache.cc.
References FixedArray::cast(), Isolate::counters(), v8::internal::generation(), CompilationSubCache::generations(), CompilationSubCache::GetTable(), CompilationSubCache::isolate(), Handle< T >::null(), v8::internal::NULL, and CompilationCacheRegExp::Put().
Referenced by CompilationCache::LookupRegExp().
void Put | ( | Handle< String > | source, |
JSRegExp::Flags | flags, | ||
Handle< FixedArray > | data | ||
) |
Definition at line 384 of file compilation-cache.cc.
References CompilationSubCache::isolate(), and CompilationSubCache::SetFirstTable().
Referenced by CompilationCacheRegExp::Lookup(), and CompilationCache::PutRegExp().