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
CompilationInfo Class Reference

#include <compiler.h>

Inheritance diagram for CompilationInfo:

Public Member Functions

 CompilationInfo (Handle< JSFunction > closure, Zone *zone)
 
virtual ~CompilationInfo ()
 
Isolateisolate () const
 
Zonezone ()
 
bool is_osr () const
 
bool is_lazy () const
 
bool is_eval () const
 
bool is_global () const
 
StrictMode strict_mode () const
 
bool is_in_loop () const
 
FunctionLiteral * function () const
 
Scopescope () const
 
Scopeglobal_scope () const
 
Handle< Codecode () const
 
Handle< JSFunctionclosure () const
 
Handle< SharedFunctionInfoshared_info () const
 
Handle< Scriptscript () const
 
HydrogenCodeStubcode_stub () const
 
v8::Extensionextension () const
 
ScriptDataImpl ** cached_data () const
 
CachedDataMode cached_data_mode () const
 
Handle< Contextcontext () const
 
BailoutId osr_ast_id () const
 
Handle< Codeunoptimized_code () const
 
int opt_count () const
 
int num_parameters () const
 
int num_heap_slots () const
 
Code::Flags flags () const
 
void MarkAsEval ()
 
void MarkAsGlobal ()
 
void set_parameter_count (int parameter_count)
 
void set_this_has_uses (bool has_no_uses)
 
bool this_has_uses ()
 
void SetStrictMode (StrictMode strict_mode)
 
void MarkAsInLoop ()
 
void MarkAsNative ()
 
bool is_native () const
 
bool is_calling () const
 
void MarkAsDeferredCalling ()
 
bool is_deferred_calling () const
 
void MarkAsNonDeferredCalling ()
 
bool is_non_deferred_calling () const
 
void MarkAsSavesCallerDoubles ()
 
bool saves_caller_doubles () const
 
void MarkAsRequiresFrame ()
 
bool requires_frame () const
 
void SetParseRestriction (ParseRestriction restriction)
 
ParseRestriction parse_restriction () const
 
void SetFunction (FunctionLiteral *literal)
 
void PrepareForCompilation (Scope *scope)
 
void SetGlobalScope (Scope *global_scope)
 
void SetCode (Handle< Code > code)
 
void SetExtension (v8::Extension *extension)
 
void SetCachedData (ScriptDataImpl **cached_data, CachedDataMode cached_data_mode)
 
void SetContext (Handle< Context > context)
 
void MarkCompilingForDebugging ()
 
bool IsCompilingForDebugging ()
 
void MarkNonOptimizable ()
 
bool ShouldTrapOnDeopt () const
 
bool has_global_object () const
 
GlobalObjectglobal_object () const
 
bool IsOptimizing () const
 
bool IsOptimizable () const
 
bool IsStub () const
 
void SetOptimizing (BailoutId osr_ast_id, Handle< Code > unoptimized)
 
void DisableOptimization ()
 
bool HasDeoptimizationSupport () const
 
void EnableDeoptimizationSupport ()
 
bool ShouldSelfOptimize ()
 
void set_deferred_handles (DeferredHandles *deferred_handles)
 
ZoneList< Handle< HeapObject > > * dependencies (DependentCode::DependencyGroup group)
 
void CommitDependencies (Handle< Code > code)
 
void RollbackDependencies ()
 
void SaveHandles ()
 
BailoutReason bailout_reason () const
 
void set_bailout_reason (BailoutReason reason)
 
int prologue_offset () const
 
void set_prologue_offset (int prologue_offset)
 
void AddNoFrameRange (int from, int to)
 
List< OffsetRange > * ReleaseNoFrameRanges ()
 
Handle< Foreignobject_wrapper ()
 
void AbortDueToDependencyChange ()
 
bool HasAbortedDueToDependencyChange ()
 
bool HasSameOsrEntry (Handle< JSFunction > function, BailoutId osr_ast_id)
 
int optimization_id () const
 

Protected Member Functions

 CompilationInfo (Handle< Script > script, Zone *zone)
 
 CompilationInfo (Handle< SharedFunctionInfo > shared_info, Zone *zone)
 
 CompilationInfo (HydrogenCodeStub *stub, Isolate *isolate, Zone *zone)
 

Detailed Description

Definition at line 62 of file compiler.h.

Constructor & Destructor Documentation

CompilationInfo ( Handle< JSFunction closure,
Zone zone 
)

Definition at line 82 of file compiler.cc.

References CompilationInfo::zone().

~CompilationInfo ( )
virtual

Definition at line 147 of file compiler.cc.

References ASSERT_EQ, DependentCode::kGroupCount, and v8::internal::NULL.

CompilationInfo ( Handle< Script script,
Zone zone 
)
protected

Definition at line 57 of file compiler.cc.

References CompilationInfo::zone().

CompilationInfo ( Handle< SharedFunctionInfo shared_info,
Zone zone 
)
protected

Definition at line 69 of file compiler.cc.

References CompilationInfo::zone().

CompilationInfo ( HydrogenCodeStub stub,
Isolate isolate,
Zone zone 
)
protected

Definition at line 97 of file compiler.cc.

Member Function Documentation

void AbortDueToDependencyChange ( )
inline

Definition at line 314 of file compiler.h.

References ASSERT, and CompilationInfo::isolate().

Referenced by DependentCode::MarkCodeForDeoptimization().

void AddNoFrameRange ( int  from,
int  to 
)
inline

Definition at line 296 of file compiler.h.

BailoutReason bailout_reason ( ) const
inline
ScriptDataImpl** cached_data ( ) const
inline

Definition at line 86 of file compiler.h.

Referenced by CompilationInfo::SetCachedData().

CachedDataMode cached_data_mode ( ) const
inline

Definition at line 87 of file compiler.h.

Referenced by CompilationInfo::SetCachedData().

Handle<Context> context ( ) const
inline

Definition at line 90 of file compiler.h.

Referenced by OptimizedCompileJob::GenerateCode(), and CompilationInfo::SetContext().

void DisableOptimization ( )
void EnableDeoptimizationSupport ( )
inline
v8::Extension* extension ( ) const
inline

Definition at line 85 of file compiler.h.

Referenced by CompilationInfo::SetExtension().

GlobalObject* global_object ( ) const
inline
Scope* global_scope ( ) const
inline
bool has_global_object ( ) const
inline

Definition at line 221 of file compiler.h.

References CompilationInfo::closure(), and v8::internal::NULL.

Referenced by CompilationInfo::global_object().

bool HasAbortedDueToDependencyChange ( )
inline

Definition at line 319 of file compiler.h.

References ASSERT, and CompilationInfo::isolate().

bool HasDeoptimizationSupport ( ) const
inline

Definition at line 244 of file compiler.h.

Referenced by FullCodeGenerator::MakeCode().

bool HasSameOsrEntry ( Handle< JSFunction function,
BailoutId  osr_ast_id 
)
inline
bool is_calling ( ) const
inline
bool is_deferred_calling ( ) const
inline

Definition at line 141 of file compiler.h.

Referenced by CompilationInfo::is_calling().

bool is_eval ( ) const
inline

Definition at line 73 of file compiler.h.

bool is_global ( ) const
inline

Definition at line 74 of file compiler.h.

bool is_in_loop ( ) const
inline

Definition at line 76 of file compiler.h.

bool is_native ( ) const
inline

Definition at line 129 of file compiler.h.

Referenced by Parser::Parser().

bool is_non_deferred_calling ( ) const
inline

Definition at line 149 of file compiler.h.

Referenced by CompilationInfo::is_calling().

bool IsCompilingForDebugging ( )
inline

Definition at line 209 of file compiler.h.

bool IsOptimizable ( ) const
inline
bool IsOptimizing ( ) const
inline

Definition at line 231 of file compiler.h.

Referenced by CodeGenerator::PrintCode(), and CompilationInfo::ShouldTrapOnDeopt().

void MarkAsDeferredCalling ( )
inline

Definition at line 137 of file compiler.h.

void MarkAsEval ( )
inline

Definition at line 98 of file compiler.h.

References ASSERT, and CompilationInfo::is_lazy().

Referenced by Compiler::GetFunctionFromEval().

void MarkAsGlobal ( )
inline
void MarkAsInLoop ( )
inline

Definition at line 121 of file compiler.h.

References ASSERT, and CompilationInfo::is_lazy().

void MarkAsNative ( )
inline

Definition at line 125 of file compiler.h.

void MarkAsNonDeferredCalling ( )
inline

Definition at line 145 of file compiler.h.

void MarkAsRequiresFrame ( )
inline

Definition at line 161 of file compiler.h.

void MarkAsSavesCallerDoubles ( )
inline

Definition at line 153 of file compiler.h.

void MarkCompilingForDebugging ( )
inline

Definition at line 206 of file compiler.h.

Referenced by Compiler::GetCodeForDebugging().

void MarkNonOptimizable ( )
inline

Definition at line 212 of file compiler.h.

Referenced by Compiler::GetCodeForDebugging().

int num_heap_slots ( ) const
int num_parameters ( ) const
int opt_count ( ) const
inline

Definition at line 93 of file compiler.h.

int optimization_id ( ) const
inline

Definition at line 328 of file compiler.h.

Referenced by CodeGenerator::PrintCode().

ParseRestriction parse_restriction ( ) const
inline

Definition at line 173 of file compiler.h.

void PrepareForCompilation ( Scope scope)
int prologue_offset ( ) const
inline
List<OffsetRange>* ReleaseNoFrameRanges ( )
inline

Definition at line 300 of file compiler.h.

References v8::internal::NULL.

Referenced by CpuProfiler::CodeCreateEvent().

bool requires_frame ( ) const
inline

Definition at line 165 of file compiler.h.

void SaveHandles ( )
inline

Definition at line 272 of file compiler.h.

bool saves_caller_doubles ( ) const
inline

Definition at line 157 of file compiler.h.

Referenced by LChunk::set_allocated_double_registers().

void set_deferred_handles ( DeferredHandles deferred_handles)
inline

Definition at line 255 of file compiler.h.

References ASSERT, and v8::internal::NULL.

void set_parameter_count ( int  parameter_count)
inline

Definition at line 106 of file compiler.h.

References ASSERT, and CompilationInfo::IsStub().

void set_prologue_offset ( int  prologue_offset)
inline
void set_this_has_uses ( bool  has_no_uses)
inline

Definition at line 111 of file compiler.h.

Referenced by OptimizedCompileJob::CreateGraph().

void SetCachedData ( ScriptDataImpl **  cached_data,
CachedDataMode  cached_data_mode 
)
inline
void SetCode ( Handle< Code code)
inline
void SetContext ( Handle< Context context)
inline
void SetExtension ( v8::Extension extension)
inline

Definition at line 188 of file compiler.h.

References ASSERT, CompilationInfo::extension(), and CompilationInfo::is_lazy().

Referenced by Compiler::CompileScript().

void SetFunction ( FunctionLiteral *  literal)
inline

Definition at line 177 of file compiler.h.

References ASSERT, and v8::internal::NULL.

Referenced by Compiler::BuildFunctionInfo(), and OptimizedCompileJob::CreateGraph().

void SetGlobalScope ( Scope global_scope)
inline

Definition at line 183 of file compiler.h.

References ASSERT, CompilationInfo::global_scope(), and v8::internal::NULL.

void SetOptimizing ( BailoutId  osr_ast_id,
Handle< Code unoptimized 
)
inline
void SetParseRestriction ( ParseRestriction  restriction)
inline

Definition at line 169 of file compiler.h.

Referenced by Compiler::GetFunctionFromEval().

void SetStrictMode ( StrictMode  strict_mode)
inline
bool ShouldTrapOnDeopt ( ) const
inline

Definition at line 216 of file compiler.h.

References CompilationInfo::IsOptimizing(), and CompilationInfo::IsStub().

StrictMode strict_mode ( ) const
inline

Definition at line 75 of file compiler.h.

Referenced by CompilationInfo::SetStrictMode().

bool this_has_uses ( )
inline

Definition at line 114 of file compiler.h.

Handle<Code> unoptimized_code ( ) const
inline

Definition at line 92 of file compiler.h.

Referenced by OptimizingCompilerThread::InstallOptimizedFunctions().


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