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

#include <ast.h>

Inheritance diagram for ForStatement:
Collaboration diagram for ForStatement:

Public Member Functions

void Initialize (Statement *init, Expression *cond, Statement *next, Statement *body)
 
Statementinit () const
 
Expressioncond () const
 
Statementnext () const
 
bool may_have_function_literal () const
 
void set_may_have_function_literal (bool value)
 
virtual BailoutId ContinueId () const
 
virtual BailoutId StackCheckId () const
 
BailoutId BodyId () const
 
bool is_fast_smi_loop ()
 
Variableloop_variable ()
 
void set_loop_variable (Variable *var)
 
- Public Member Functions inherited from IterationStatement
virtual IterationStatementAsIterationStatement ()
 
Statementbody () const
 
BailoutId OsrEntryId () const
 
Label * continue_target ()
 
- Public Member Functions inherited from BreakableStatement
ZoneStringListlabels () const
 
virtual BreakableStatementAsBreakableStatement ()
 
Label * break_target ()
 
bool is_target_for_anonymous () const
 
BailoutId EntryId () const
 
BailoutId ExitId () 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 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

 ForStatement (Isolate *isolate, ZoneStringList *labels)
 
- Protected Member Functions inherited from IterationStatement
 IterationStatement (Isolate *isolate, ZoneStringList *labels)
 
void Initialize (Statement *body)
 
- Protected Member Functions inherited from BreakableStatement
 BreakableStatement (Isolate *isolate, ZoneStringList *labels, Type type)
 

Additional Inherited Members

- Public Types inherited from BreakableStatement
enum  Type { TARGET_FOR_ANONYMOUS, TARGET_FOR_NAMED_ONLY }
 
- 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 754 of file ast.h.

Constructor & Destructor Documentation

ForStatement ( Isolate isolate,
ZoneStringList labels 
)
inlineprotected

Definition at line 788 of file ast.h.

Member Function Documentation

BailoutId BodyId ( ) const
inline

Definition at line 781 of file ast.h.

Expression* cond ( ) const
inline

Definition at line 769 of file ast.h.

virtual BailoutId ContinueId ( ) const
inlinevirtual

Implements IterationStatement.

Definition at line 779 of file ast.h.

Statement* init ( ) const
inline

Definition at line 768 of file ast.h.

void Initialize ( Statement init,
Expression cond,
Statement next,
Statement body 
)
inline

Definition at line 758 of file ast.h.

References IterationStatement::Initialize().

bool is_fast_smi_loop ( )
inline

Definition at line 783 of file ast.h.

References v8::internal::NULL.

Variable* loop_variable ( )
inline

Definition at line 784 of file ast.h.

bool may_have_function_literal ( ) const
inline

Definition at line 772 of file ast.h.

Statement* next ( ) const
inline

Definition at line 770 of file ast.h.

void set_loop_variable ( Variable var)
inline

Definition at line 785 of file ast.h.

void set_may_have_function_literal ( bool  value)
inline

Definition at line 775 of file ast.h.

virtual BailoutId StackCheckId ( ) const
inlinevirtual

Implements IterationStatement.

Definition at line 780 of file ast.h.


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