![]() |
v8
3.11.10(node0.8.26)
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) |
Handle< SharedFunctionInfo > | LookupEval (Handle< String > source, Handle< Context > context, bool is_global, LanguageMode language_mode, int scope_position) |
Handle< FixedArray > | LookupRegExp (Handle< String > source, JSRegExp::Flags flags) |
void | PutScript (Handle< String > source, Handle< SharedFunctionInfo > function_info) |
void | PutEval (Handle< String > source, Handle< Context > context, bool is_global, 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 199 of file compilation-cache.h.
void Clear | ( | ) |
Definition at line 469 of file compilation-cache.cc.
References CompilationSubCache::Clear().
Referenced by Heap::CollectAllAvailableGarbage(), and CompilationCache::Disable().
void Disable | ( | ) |
Definition at line 502 of file compilation-cache.cc.
References CompilationCache::Clear().
void Enable | ( | ) |
Definition at line 497 of file compilation-cache.cc.
void Iterate | ( | ObjectVisitor * | v | ) |
Definition at line 476 of file compilation-cache.cc.
References CompilationSubCache::Iterate().
Referenced by Heap::IterateStrongRoots().
void IterateFunctions | ( | ObjectVisitor * | v | ) |
Definition at line 483 of file compilation-cache.cc.
References CompilationSubCache::IterateFunctions().
Handle< SharedFunctionInfo > LookupEval | ( | Handle< String > | source, |
Handle< Context > | context, | ||
bool | is_global, | ||
LanguageMode | language_mode, | ||
int | scope_position | ||
) |
Definition at line 395 of file compilation-cache.cc.
References ASSERT, CompilationCacheEval::Lookup(), and Handle< T >::null().
Referenced by Compiler::CompileEval().
Handle< FixedArray > LookupRegExp | ( | Handle< String > | source, |
JSRegExp::Flags | flags | ||
) |
Definition at line 418 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 | ||
) |
Definition at line 383 of file compilation-cache.cc.
References CompilationCacheScript::Lookup(), and Handle< T >::null().
Referenced by Compiler::Compile().
void MarkCompactPrologue | ( | ) |
Definition at line 490 of file compilation-cache.cc.
References CompilationSubCache::Age().
void PutEval | ( | Handle< String > | source, |
Handle< Context > | context, | ||
bool | is_global, | ||
Handle< SharedFunctionInfo > | function_info, | ||
int | scope_position | ||
) |
Definition at line 438 of file compilation-cache.cc.
References ASSERT, and CompilationCacheEval::Put().
Referenced by Compiler::CompileEval().
void PutRegExp | ( | Handle< String > | source, |
JSRegExp::Flags | flags, | ||
Handle< FixedArray > | data | ||
) |
Definition at line 458 of file compilation-cache.cc.
References CompilationCacheRegExp::Put().
Referenced by RegExpImpl::Compile().
void PutScript | ( | Handle< String > | source, |
Handle< SharedFunctionInfo > | function_info | ||
) |
Definition at line 428 of file compilation-cache.cc.
References CompilationCacheScript::Put().
Referenced by Compiler::Compile().
void Remove | ( | Handle< SharedFunctionInfo > | function_info | ) |
Definition at line 374 of file compilation-cache.cc.
References CompilationSubCache::Remove().
|
friend |
Definition at line 286 of file compilation-cache.h.