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

#include <compiler.h>

Inheritance diagram for CompilationInfo:

Public Member Functions

 CompilationInfo (Handle< Script > script, Zone *zone)
 
 CompilationInfo (Handle< SharedFunctionInfo > shared_info, Zone *zone)
 
 CompilationInfo (Handle< JSFunction > closure, Zone *zone)
 
virtual ~CompilationInfo ()
 
Isolateisolate ()
 
Zonezone ()
 
bool is_lazy () const
 
bool is_eval () const
 
bool is_global () const
 
bool is_classic_mode () const
 
bool is_extended_mode () const
 
LanguageMode language_mode () const
 
bool is_in_loop () const
 
FunctionLiteralfunction () const
 
Scopescope () const
 
Scopeglobal_scope () const
 
Handle< Codecode () const
 
Handle< JSFunctionclosure () const
 
Handle< SharedFunctionInfoshared_info () const
 
Handle< Scriptscript () const
 
v8::Extensionextension () const
 
ScriptDataImplpre_parse_data () const
 
Handle< Contextcontext () const
 
BailoutId osr_ast_id () const
 
void MarkAsEval ()
 
void MarkAsGlobal ()
 
void SetLanguageMode (LanguageMode language_mode)
 
void MarkAsInLoop ()
 
void MarkAsNative ()
 
bool is_native () const
 
void SetFunction (FunctionLiteral *literal)
 
void SetScope (Scope *scope)
 
void SetGlobalScope (Scope *global_scope)
 
void SetCode (Handle< Code > code)
 
void SetExtension (v8::Extension *extension)
 
void SetPreParseData (ScriptDataImpl *pre_parse_data)
 
void SetContext (Handle< Context > context)
 
void MarkCompilingForDebugging (Handle< Code > current_code)
 
bool IsCompilingForDebugging ()
 
bool has_global_object () const
 
GlobalObjectglobal_object () const
 
bool IsOptimizing () const
 
bool IsOptimizable () const
 
void SetOptimizing (BailoutId osr_ast_id)
 
void DisableOptimization ()
 
bool HasDeoptimizationSupport () const
 
void EnableDeoptimizationSupport ()
 
bool ShouldSelfOptimize ()
 
void AbortOptimization ()
 
void set_deferred_handles (DeferredHandles *deferred_handles)
 
void SaveHandles ()
 
const char * bailout_reason () const
 
void set_bailout_reason (const char *reason)
 

Detailed Description

Definition at line 42 of file compiler.h.

Constructor & Destructor Documentation

CompilationInfo ( Handle< Script script,
Zone zone 
)

Definition at line 54 of file compiler.cc.

CompilationInfo ( Handle< SharedFunctionInfo shared_info,
Zone zone 
)

Definition at line 70 of file compiler.cc.

CompilationInfo ( Handle< JSFunction closure,
Zone zone 
)

Definition at line 89 of file compiler.cc.

~CompilationInfo ( )
virtual

Definition at line 109 of file compiler.cc.

Member Function Documentation

const char* bailout_reason ( ) const
inline

Definition at line 186 of file compiler.h.

Referenced by OptimizingCompiler::AbortOptimization().

Handle<Context> context ( ) const
inline

Definition at line 75 of file compiler.h.

Referenced by CompilationInfo::SetContext().

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

Definition at line 73 of file compiler.h.

Referenced by ParserApi::Parse(), and CompilationInfo::SetExtension().

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

Definition at line 140 of file compiler.h.

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

Referenced by CompilationInfo::global_object().

bool HasDeoptimizationSupport ( ) const
inline

Definition at line 159 of file compiler.h.

Referenced by FullCodeGenerator::MakeCode().

bool is_classic_mode ( ) const
inline

Definition at line 60 of file compiler.h.

References v8::internal::CLASSIC_MODE, and CompilationInfo::language_mode().

bool is_eval ( ) const
inline

Definition at line 58 of file compiler.h.

Referenced by ParserApi::Parse(), and Parser::ParseProgram().

bool is_extended_mode ( ) const
inline

Definition at line 61 of file compiler.h.

References v8::internal::EXTENDED_MODE, and CompilationInfo::language_mode().

bool is_global ( ) const
inline

Definition at line 59 of file compiler.h.

bool is_in_loop ( ) const
inline

Definition at line 65 of file compiler.h.

bool is_native ( ) const
inline

Definition at line 99 of file compiler.h.

Referenced by ParserApi::Parse().

bool IsCompilingForDebugging ( )
inline

Definition at line 136 of file compiler.h.

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

Definition at line 150 of file compiler.h.

Referenced by Compiler::CompileLazy(), and CodeGenerator::PrintCode().

LanguageMode language_mode ( ) const
inline
void MarkAsEval ( )
inline

Definition at line 78 of file compiler.h.

References ASSERT, and CompilationInfo::is_lazy().

Referenced by Compiler::CompileEval().

void MarkAsGlobal ( )
inline

Definition at line 82 of file compiler.h.

References ASSERT, and CompilationInfo::is_lazy().

Referenced by Compiler::Compile(), Compiler::CompileEval(), TEST(), and TestParserSync().

void MarkAsInLoop ( )
inline

Definition at line 92 of file compiler.h.

References ASSERT, and CompilationInfo::is_lazy().

void MarkAsNative ( )
inline

Definition at line 96 of file compiler.h.

void MarkCompilingForDebugging ( Handle< Code current_code)
inline

Definition at line 126 of file compiler.h.

References ASSERT, and CompilationInfo::EnableDeoptimizationSupport().

BailoutId osr_ast_id ( ) const
inline

Definition at line 76 of file compiler.h.

Referenced by CompilationInfo::SetOptimizing().

ScriptDataImpl* pre_parse_data ( ) const
inline

Definition at line 74 of file compiler.h.

Referenced by ParserApi::Parse(), and CompilationInfo::SetPreParseData().

void SaveHandles ( )
inline

Definition at line 179 of file compiler.h.

void set_bailout_reason ( const char *  reason)
inline
void set_deferred_handles ( DeferredHandles deferred_handles)
inline

Definition at line 174 of file compiler.h.

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

void SetContext ( Handle< Context context)
inline
void SetExtension ( v8::Extension extension)
inline

Definition at line 115 of file compiler.h.

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

Referenced by Compiler::Compile().

void SetFunction ( FunctionLiteral literal)
inline
void SetGlobalScope ( Scope global_scope)
inline

Definition at line 110 of file compiler.h.

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

void SetOptimizing ( BailoutId  osr_ast_id)
inline

Definition at line 152 of file compiler.h.

References CompilationInfo::osr_ast_id().

Referenced by JSFunction::CompileOptimized().

void SetPreParseData ( ScriptDataImpl pre_parse_data)
inline

Definition at line 119 of file compiler.h.

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

Referenced by Compiler::Compile().

void SetScope ( Scope scope)
inline

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