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

#include <hydrogen.h>

Inheritance diagram for HGraphBuilder:
Collaboration diagram for HGraphBuilder:

Data Structures

class  BASE_EMBEDDED
 

Public Types

enum  BreakType { BREAK, CONTINUE }
 
enum  SwitchType { UNKNOWN_SWITCH, SMI_SWITCH, STRING_SWITCH }
 

Public Member Functions

 HGraphBuilder (CompilationInfo *info, TypeFeedbackOracle *oracle, Zone *zone)
 
HGraphCreateGraph ()
 
HGraphgraph () const
 
BreakAndContinueScope * break_scope () const
 
void set_break_scope (BreakAndContinueScope *head)
 
HBasicBlockcurrent_block () const
 
void set_current_block (HBasicBlock *block)
 
HEnvironmentenvironment () const
 
bool inline_bailout ()
 
HInstructionAddInstruction (HInstruction *instr)
 
void AddSimulate (int ast_id)
 
void Push (HValue *value)
 
HValuePop ()
 
void Bailout (const char *reason)
 
HBasicBlockCreateJoin (HBasicBlock *first, HBasicBlock *second, int join_id)
 
TypeFeedbackOracle * oracle () const
 
FunctionStatefunction_state () const
 
void VisitDeclarations (ZoneList< Declaration * > *declarations)
 

Friends

class FunctionState
 
class AstContext
 

Detailed Description

Definition at line 785 of file hydrogen.h.

Member Enumeration Documentation

enum BreakType
Enumerator
BREAK 
CONTINUE 

Definition at line 787 of file hydrogen.h.

enum SwitchType
Enumerator
UNKNOWN_SWITCH 
SMI_SWITCH 
STRING_SWITCH 

Definition at line 788 of file hydrogen.h.

Constructor & Destructor Documentation

HGraphBuilder ( CompilationInfo *  info,
TypeFeedbackOracle *  oracle,
Zone zone 
)

Definition at line 607 of file hydrogen.cc.

Member Function Documentation

void Bailout ( const char *  reason)
BreakAndContinueScope* break_scope ( ) const
inline

Definition at line 847 of file hydrogen.h.

HBasicBlock * CreateJoin ( HBasicBlock first,
HBasicBlock second,
int  join_id 
)
FunctionState* function_state ( ) const
inline

Definition at line 874 of file hydrogen.h.

Referenced by HGraphBuilder::oracle().

bool inline_bailout ( )
inline

Definition at line 856 of file hydrogen.h.

TypeFeedbackOracle* oracle ( ) const
inline

Definition at line 872 of file hydrogen.h.

References HGraphBuilder::function_state(), and FunctionState::oracle().

HValue* Pop ( )
inline

Definition at line 864 of file hydrogen.h.

References HGraphBuilder::environment(), and HEnvironment::Pop().

void Push ( HValue value)
inline
void set_break_scope ( BreakAndContinueScope *  head)
inline

Definition at line 848 of file hydrogen.h.

Referenced by HGraphBuilder::BASE_EMBEDDED::BreakAndContinueScope().

void set_current_block ( HBasicBlock block)
inline

Friends And Related Function Documentation

friend class AstContext
friend

Definition at line 1190 of file hydrogen.h.

friend class FunctionState
friend

Definition at line 1189 of file hydrogen.h.


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