v8
3.14.5(node0.10.28)
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< Context > context) |
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< Context > context, 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 206 of file compilation-cache.h.
void Clear | ( | ) |
Definition at line 477 of file compilation-cache.cc.
References CompilationSubCache::Clear().
Referenced by Heap::CollectAllAvailableGarbage(), and CompilationCache::Disable().
void Disable | ( | ) |
Definition at line 510 of file compilation-cache.cc.
References CompilationCache::Clear().
void Enable | ( | ) |
Definition at line 505 of file compilation-cache.cc.
void Iterate | ( | ObjectVisitor * | v | ) |
Definition at line 484 of file compilation-cache.cc.
References CompilationSubCache::Iterate().
Referenced by Heap::IterateStrongRoots().
void IterateFunctions | ( | ObjectVisitor * | v | ) |
Definition at line 491 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 402 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 425 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, | ||
Handle< Context > | context | ||
) |
Definition at line 388 of file compilation-cache.cc.
References CompilationCacheScript::Lookup(), and Handle< T >::null().
Referenced by Compiler::Compile().
void MarkCompactPrologue | ( | ) |
Definition at line 498 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 446 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 466 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 435 of file compilation-cache.cc.
References CompilationCacheScript::Put().
Referenced by Compiler::Compile().
void Remove | ( | Handle< SharedFunctionInfo > | function_info | ) |
Definition at line 379 of file compilation-cache.cc.
References CompilationSubCache::Remove().
|
friend |
Definition at line 295 of file compilation-cache.h.