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

#include <ast.h>

Inheritance diagram for IfStatement:
Collaboration diagram for IfStatement:

Public Member Functions

bool HasThenStatement () const
 
bool HasElseStatement () const
 
Expressioncondition () const
 
Statementthen_statement () const
 
Statementelse_statement () const
 
BailoutId IfId () const
 
BailoutId ThenId () const
 
BailoutId ElseId () const
 
- Public Member Functions inherited from Statement
 Statement ()
 
bool IsEmpty ()
 
void set_statement_pos (int statement_pos)
 
int statement_pos () 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

 IfStatement (Isolate *isolate, Expression *condition, Statement *then_statement, Statement *else_statement)
 

Additional Inherited Members

- 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 1002 of file ast.h.

Constructor & Destructor Documentation

IfStatement ( Isolate isolate,
Expression condition,
Statement then_statement,
Statement else_statement 
)
inlineprotected

Definition at line 1018 of file ast.h.

Member Function Documentation

Expression* condition ( ) const
inline

Definition at line 1009 of file ast.h.

Statement* else_statement ( ) const
inline

Definition at line 1011 of file ast.h.

BailoutId ElseId ( ) const
inline

Definition at line 1015 of file ast.h.

bool HasElseStatement ( ) const
inline

Definition at line 1007 of file ast.h.

bool HasThenStatement ( ) const
inline

Definition at line 1006 of file ast.h.

BailoutId IfId ( ) const
inline

Definition at line 1013 of file ast.h.

Statement* then_statement ( ) const
inline

Definition at line 1010 of file ast.h.

BailoutId ThenId ( ) const
inline

Definition at line 1014 of file ast.h.


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