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
AstContext Class Referenceabstract

#include <hydrogen.h>

Inheritance diagram for AstContext:

Public Member Functions

bool IsEffect () const
 
bool IsValue () const
 
bool IsTest () const
 
virtual void ReturnValue (HValue *value)=0
 
virtual void ReturnInstruction (HInstruction *instr, BailoutId ast_id)=0
 
virtual void ReturnControl (HControlInstruction *instr, BailoutId ast_id)=0
 
void set_for_typeof (bool for_typeof)
 
bool is_for_typeof ()
 

Protected Member Functions

 AstContext (HGraphBuilder *owner, Expression::Context kind)
 
virtual ~AstContext ()
 
HGraphBuilderowner () const
 
Zonezone () const
 

Detailed Description

Definition at line 624 of file hydrogen.h.

Constructor & Destructor Documentation

~AstContext ( )
protectedvirtual

Definition at line 2996 of file hydrogen.cc.

Member Function Documentation

bool is_for_typeof ( )
inline

Definition at line 648 of file hydrogen.h.

bool IsEffect ( ) const
inline

Definition at line 626 of file hydrogen.h.

References Expression::kEffect.

bool IsTest ( ) const
inline

Definition at line 628 of file hydrogen.h.

References Expression::kTest.

Referenced by TestContext::cast(), and FunctionState::FunctionState().

bool IsValue ( ) const
inline

Definition at line 627 of file hydrogen.h.

References Expression::kValue.

virtual void ReturnControl ( HControlInstruction instr,
BailoutId  ast_id 
)
pure virtual

Implemented in TestContext, ValueContext, and EffectContext.

virtual void ReturnInstruction ( HInstruction instr,
BailoutId  ast_id 
)
pure virtual

Implemented in TestContext, ValueContext, and EffectContext.

virtual void ReturnValue ( HValue value)
pure virtual

Implemented in TestContext, ValueContext, and EffectContext.

void set_for_typeof ( bool  for_typeof)
inline

Definition at line 647 of file hydrogen.h.

Zone * zone ( ) const
inlineprotected

Definition at line 1252 of file hydrogen.h.


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