v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CompilationCache Class Reference

#include <compilation-cache.h>

Public Member Functions

Handle< SharedFunctionInfoLookupScript (Handle< String > source, Handle< Object > name, int line_offset, int column_offset, Handle< Context > context)
 
Handle< SharedFunctionInfoLookupEval (Handle< String > source, Handle< Context > context, bool is_global, LanguageMode language_mode, int scope_position)
 
Handle< FixedArrayLookupRegExp (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
 

Detailed Description

Definition at line 206 of file compilation-cache.h.

Member Function Documentation

void Clear ( )
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().

Friends And Related Function Documentation

friend class Isolate
friend

Definition at line 295 of file compilation-cache.h.


The documentation for this class was generated from the following files: