v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <compilation-cache.h>
Public Member Functions | |
CompilationCacheScript (Isolate *isolate, int generations) | |
Handle< SharedFunctionInfo > | Lookup (Handle< String > source, Handle< Object > name, int line_offset, int column_offset, bool is_shared_cross_origin, Handle< Context > context) |
void | Put (Handle< String > source, Handle< Context > context, Handle< SharedFunctionInfo > function_info) |
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 94 of file compilation-cache.h.
CompilationCacheScript | ( | Isolate * | isolate, |
int | generations | ||
) |
Definition at line 133 of file compilation-cache.cc.
Handle< SharedFunctionInfo > Lookup | ( | Handle< String > | source, |
Handle< Object > | name, | ||
int | line_offset, | ||
int | column_offset, | ||
bool | is_shared_cross_origin, | ||
Handle< Context > | context | ||
) |
Definition at line 172 of file compilation-cache.cc.
References StatsTable::AddHistogramSample(), ASSERT, Handle< T >::cast(), SharedFunctionInfo::cast(), Isolate::counters(), StatsTable::CreateHistogram(), v8::internal::generation(), CompilationSubCache::generations(), CompilationSubCache::GetTable(), CompilationSubCache::isolate(), Handle< T >::null(), v8::internal::NULL, CompilationCacheScript::Put(), and Isolate::stats_table().
Referenced by CompilationCache::LookupScript().
void Put | ( | Handle< String > | source, |
Handle< Context > | context, | ||
Handle< SharedFunctionInfo > | function_info | ||
) |
Definition at line 261 of file compilation-cache.cc.
References CompilationSubCache::isolate(), and CompilationSubCache::SetFirstTable().
Referenced by CompilationCacheScript::Lookup(), and CompilationCache::PutScript().