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

#include <hydrogen.h>

Inheritance diagram for TestContext:
Collaboration diagram for TestContext:

Public Member Functions

 TestContext (HGraphBuilder *owner, Expression *condition, TypeFeedbackOracle *oracle, HBasicBlock *if_true, HBasicBlock *if_false)
 
virtual void ReturnValue (HValue *value)
 
virtual void ReturnInstruction (HInstruction *instr, BailoutId ast_id)
 
virtual void ReturnControl (HControlInstruction *instr, BailoutId ast_id)
 
Expression * condition () const
 
TypeFeedbackOracle * oracle () const
 
HBasicBlock * if_true () const
 
HBasicBlock * if_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 TestContext * cast (AstContext *context)
 

Additional Inherited Members

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

Detailed Description

Definition at line 703 of file hydrogen.h.

Constructor & Destructor Documentation

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

Definition at line 705 of file hydrogen.h.

Member Function Documentation

static TestContext* cast ( AstContext *  context)
inlinestatic

Definition at line 721 of file hydrogen.h.

References ASSERT, and AstContext::IsTest().

Referenced by FunctionState::FunctionState().

Expression* condition ( ) const
inline

Definition at line 726 of file hydrogen.h.

Referenced by FunctionState::FunctionState().

HBasicBlock* if_false ( ) const
inline

Definition at line 729 of file hydrogen.h.

Referenced by TestContext::ReturnControl().

HBasicBlock* if_true ( ) const
inline

Definition at line 728 of file hydrogen.h.

Referenced by TestContext::ReturnControl().

TypeFeedbackOracle* oracle ( ) const
inline

Definition at line 727 of file hydrogen.h.

Referenced by FunctionState::FunctionState().

void ReturnInstruction ( HInstruction *  instr,
BailoutId  ast_id 
)
virtual

Implements AstContext.

Definition at line 3088 of file hydrogen.cc.

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

void ReturnValue ( HValue *  value)
virtual

Implements AstContext.

Definition at line 3032 of file hydrogen.cc.


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