v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <compilation-cache.h>
Public Member Functions | |
Handle< SharedFunctionInfo > | LookupScript (Handle< String > source, Handle< Object > name, int line_offset, int column_offset, bool is_shared_cross_origin, Handle< Context > context) |
Handle< SharedFunctionInfo > | LookupEval (Handle< String > source, Handle< Context > context, StrictMode strict_mode, int scope_position) |
Handle< FixedArray > | LookupRegExp (Handle< String > source, JSRegExp::Flags flags) |
void | PutScript (Handle< String > source, Handle< Context > context, Handle< SharedFunctionInfo > function_info) |
void | PutEval (Handle< String > source, Handle< Context > context, Handle< SharedFunctionInfo > function_info, int scope_position) |
void | PutRegExp (Handle< String > source, JSRegExp::Flags flags, Handle< FixedArray > data) |
void | Clear () |
void | Remove (Handle< SharedFunctionInfo > function_info) |
void | Iterate (ObjectVisitor *v) |
void | IterateFunctions (ObjectVisitor *v) |
void | MarkCompactPrologue () |
void | Enable () |
void | Disable () |
Friends | |
class | Isolate |
Definition at line 207 of file compilation-cache.h.
void Clear | ( | ) |
Definition at line 490 of file compilation-cache.cc.
References CompilationSubCache::Clear().
Referenced by Heap::CollectAllAvailableGarbage(), CompilationCache::Disable(), TEST(), and THREADED_TEST().
void Disable | ( | ) |
Definition at line 523 of file compilation-cache.cc.
References CompilationCache::Clear().
void Enable | ( | ) |
Definition at line 518 of file compilation-cache.cc.
void Iterate | ( | ObjectVisitor * | v | ) |
Definition at line 497 of file compilation-cache.cc.
References CompilationSubCache::Iterate().
Referenced by Heap::IterateStrongRoots().
void IterateFunctions | ( | ObjectVisitor * | v | ) |
Definition at line 504 of file compilation-cache.cc.
References CompilationSubCache::IterateFunctions().
Handle< SharedFunctionInfo > LookupEval | ( | Handle< String > | source, |
Handle< Context > | context, | ||
StrictMode | strict_mode, | ||
int | scope_position | ||
) |
Definition at line 421 of file compilation-cache.cc.
References ASSERT, CompilationCacheEval::Lookup(), and Handle< T >::null().
Referenced by Compiler::GetFunctionFromEval().
Handle< FixedArray > LookupRegExp | ( | Handle< String > | source, |
JSRegExp::Flags | flags | ||
) |
Definition at line 443 of file compilation-cache.cc.
References CompilationCacheRegExp::Lookup(), and Handle< T >::null().
Referenced by RegExpImpl::Compile().
Handle< SharedFunctionInfo > LookupScript | ( | Handle< String > | source, |
Handle< Object > | name, | ||
int | line_offset, | ||
int | column_offset, | ||
bool | is_shared_cross_origin, | ||
Handle< Context > | context | ||
) |
Definition at line 401 of file compilation-cache.cc.
References CompilationCacheScript::Lookup(), and Handle< T >::null().
Referenced by Compiler::CompileScript().
void MarkCompactPrologue | ( | ) |
Definition at line 511 of file compilation-cache.cc.
References CompilationSubCache::Age().
void PutEval | ( | Handle< String > | source, |
Handle< Context > | context, | ||
Handle< SharedFunctionInfo > | function_info, | ||
int | scope_position | ||
) |
Definition at line 462 of file compilation-cache.cc.
References ASSERT, and CompilationCacheEval::Put().
Referenced by Compiler::GetFunctionFromEval().
void PutRegExp | ( | Handle< String > | source, |
JSRegExp::Flags | flags, | ||
Handle< FixedArray > | data | ||
) |
Definition at line 479 of file compilation-cache.cc.
References CompilationCacheRegExp::Put().
Referenced by RegExpImpl::Compile().
void PutScript | ( | Handle< String > | source, |
Handle< Context > | context, | ||
Handle< SharedFunctionInfo > | function_info | ||
) |
Definition at line 453 of file compilation-cache.cc.
References CompilationCacheScript::Put().
Referenced by Compiler::CompileScript().
void Remove | ( | Handle< SharedFunctionInfo > | function_info | ) |
Definition at line 392 of file compilation-cache.cc.
References CompilationSubCache::Remove().
|
friend |
Definition at line 295 of file compilation-cache.h.