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

#include <ast.h>

Inheritance diagram for Conditional:
Collaboration diagram for Conditional:

Public Member Functions

Expressioncondition () const
 
Expressionthen_expression () const
 
Expressionelse_expression () const
 
int then_expression_position () const
 
int else_expression_position () const
 
BailoutId ThenId () const
 
BailoutId ElseId () const
 
- Public Member Functions inherited from Expression
virtual int position () const
 
virtual bool IsValidLeftHandSide ()
 
virtual bool ToBooleanIsTrue ()
 
virtual bool ToBooleanIsFalse ()
 
virtual bool IsPropertyName ()
 
virtual bool ResultOverwriteAllowed ()
 
bool IsSmiLiteral ()
 
bool IsStringLiteral ()
 
bool IsNullLiteral ()
 
virtual bool IsMonomorphic ()
 
virtual SmallMapListGetReceiverTypes ()
 
Handle< MapGetMonomorphicReceiverType ()
 
BailoutId id () const
 
TypeFeedbackId test_id () const
 
- Public Member Functions inherited from AstNode
void * operator new (size_t size, Zone *zone)
 
 AstNode ()
 
virtual ~AstNode ()
 
virtual void Accept (AstVisitor *v)=0
 
virtual Type node_type () const =0
 
virtual TargetCollectorAsTargetCollector ()
 
virtual BreakableStatementAsBreakableStatement ()
 
virtual IterationStatementAsIterationStatement ()
 
virtual MaterializedLiteralAsMaterializedLiteral ()
 
- Public Member Functions inherited from ZoneObject
 INLINE (void *operator new(size_t size, Zone *zone))
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)
 

Protected Member Functions

 Conditional (Isolate *isolate, Expression *condition, Expression *then_expression, Expression *else_expression, int then_expression_position, int else_expression_position)
 
- Protected Member Functions inherited from Expression
 Expression (Isolate *isolate)
 

Additional Inherited Members

- Public Types inherited from Expression
enum  Context { kUninitialized, kEffect, kValue, kTest }
 
- Public Types inherited from AstNode
enum  Type { kInvalid = -1 }
 
- Static Protected Member Functions inherited from AstNode
static int GetNextId (Isolate *isolate)
 
static int ReserveIdRange (Isolate *isolate, int n)
 
static TypeFeedbackId reuse (BailoutId id)
 

Detailed Description

Definition at line 1815 of file ast.h.

Constructor & Destructor Documentation

Conditional ( Isolate isolate,
Expression condition,
Expression then_expression,
Expression else_expression,
int  then_expression_position,
int  else_expression_position 
)
inlineprotected

Definition at line 1830 of file ast.h.

Member Function Documentation

Expression* condition ( ) const
inline

Definition at line 1819 of file ast.h.

Expression* else_expression ( ) const
inline

Definition at line 1821 of file ast.h.

int else_expression_position ( ) const
inline

Definition at line 1824 of file ast.h.

BailoutId ElseId ( ) const
inline

Definition at line 1827 of file ast.h.

Expression* then_expression ( ) const
inline

Definition at line 1820 of file ast.h.

int then_expression_position ( ) const
inline

Definition at line 1823 of file ast.h.

BailoutId ThenId ( ) const
inline

Definition at line 1826 of file ast.h.


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