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

#include <hydrogen.h>

Inheritance diagram for TestContext:
Collaboration diagram for TestContext:

Public Member Functions

 TestContext (HGraphBuilder *owner, Expression *condition, HBasicBlock *if_true, HBasicBlock *if_false)
 
virtual void ReturnValue (HValue *value)
 
virtual void ReturnInstruction (HInstruction *instr, int ast_id)
 
virtual void ReturnControl (HControlInstruction *instr, int ast_id)
 
Expressioncondition () const
 
HBasicBlockif_true () const
 
HBasicBlockif_false () const
 
- Public Member Functions inherited from AstContext
bool IsEffect () const
 
bool IsValue () const
 
bool IsTest () const
 
void set_for_typeof (bool for_typeof)
 
bool is_for_typeof ()
 

Static Public Member Functions

static TestContextcast (AstContext *context)
 

Additional Inherited Members

- Protected Member Functions inherited from AstContext
 AstContext (HGraphBuilder *owner, Expression::Context kind)
 
virtual ~AstContext ()
 
HGraphBuilderowner () const
 
Zonezone () const
 

Detailed Description

Definition at line 674 of file hydrogen.h.

Constructor & Destructor Documentation

TestContext ( HGraphBuilder owner,
Expression condition,
HBasicBlock if_true,
HBasicBlock if_false 
)
inline

Definition at line 676 of file hydrogen.h.

Member Function Documentation

static TestContext* cast ( AstContext context)
inlinestatic

Definition at line 690 of file hydrogen.h.

References ASSERT, and AstContext::IsTest().

Referenced by FunctionState::FunctionState().

Expression* condition ( ) const
inline

Definition at line 695 of file hydrogen.h.

HBasicBlock* if_false ( ) const
inline

Definition at line 697 of file hydrogen.h.

Referenced by TestContext::ReturnControl().

HBasicBlock* if_true ( ) const
inline

Definition at line 696 of file hydrogen.h.

Referenced by TestContext::ReturnControl().

void ReturnInstruction ( HInstruction instr,
int  ast_id 
)
virtual

Implements AstContext.

Definition at line 2671 of file hydrogen.cc.

References ASSERT, HValue::HasObservableSideEffects(), and AstContext::owner().

void ReturnValue ( HValue value)
virtual

Implements AstContext.

Definition at line 2616 of file hydrogen.cc.


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