v8  3.25.30(node0.11.13)
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, bool is_shared_cross_origin, Handle< Context > context)
 
Handle< SharedFunctionInfoLookupEval (Handle< String > source, Handle< Context > context, StrictMode strict_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, 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 207 of file compilation-cache.h.

Member Function Documentation

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

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: