V8 Project
|
#include <compilation-cache.h>
Public Member Functions | |
CompilationCacheEval (Isolate *isolate, int generations) | |
MaybeHandle< 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) |
![]() | |
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 () |
Private Member Functions | |
DISALLOW_IMPLICIT_CONSTRUCTORS (CompilationCacheEval) | |
Additional Inherited Members | |
![]() | |
static const int | kFirstGeneration = 0 |
![]() | |
Isolate * | isolate () |
Definition at line 111 of file compilation-cache.h.
|
inline |
Definition at line 113 of file compilation-cache.h.
|
private |
MaybeHandle< SharedFunctionInfo > v8::internal::CompilationCacheEval::Lookup | ( | Handle< String > | source, |
Handle< Context > | context, | ||
StrictMode | strict_mode, | ||
int | scope_position | ||
) |
Definition at line 223 of file compilation-cache.cc.
References v8::internal::Handle< T >::cast(), v8::internal::HandleScope::CloseAndEscape(), v8::internal::Isolate::counters(), v8::internal::Isolate::factory(), v8::internal::CompilationSubCache::generations(), v8::internal::CompilationSubCache::GetTable(), v8::internal::CompilationSubCache::isolate(), and Put().
Referenced by v8::internal::CompilationCache::LookupEval().
void v8::internal::CompilationCacheEval::Put | ( | Handle< String > | source, |
Handle< Context > | context, | ||
Handle< SharedFunctionInfo > | function_info, | ||
int | scope_position | ||
) |
Definition at line 254 of file compilation-cache.cc.
References v8::internal::CompilationSubCache::GetFirstTable(), v8::internal::CompilationSubCache::isolate(), v8::internal::CompilationCacheTable::PutEval(), and v8::internal::CompilationSubCache::SetFirstTable().
Referenced by Lookup(), and v8::internal::CompilationCache::PutEval().