![]() |
v8
3.11.10(node0.8.26)
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) |
| void | Put (Handle< String > source, 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 132 of file compilation-cache.cc.
| Handle< SharedFunctionInfo > Lookup | ( | Handle< String > | source, |
| Handle< Object > | name, | ||
| int | line_offset, | ||
| int | column_offset | ||
| ) |
Definition at line 168 of file compilation-cache.cc.
References StatsTable::AddHistogramSample(), ASSERT, Handle< T >::cast(), SharedFunctionInfo::cast(), Isolate::counters(), StatsTable::CreateHistogram(), 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< SharedFunctionInfo > | function_info | ||
| ) |
Definition at line 244 of file compilation-cache.cc.
References CompilationSubCache::isolate(), and CompilationSubCache::SetFirstTable().
Referenced by CompilationCacheScript::Lookup(), and CompilationCache::PutScript().