v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ForEachStatement Class Reference

#include <ast.h>

Inheritance diagram for ForEachStatement:
Collaboration diagram for ForEachStatement:

Public Types

enum  VisitMode { ENUMERATE, ITERATE }
 
- Public Types inherited from BreakableStatement
enum  BreakableType { TARGET_FOR_ANONYMOUS, TARGET_FOR_NAMED_ONLY }
 
- Public Types inherited from AstNode
enum  NodeType { kInvalid = -1 }
 

Public Member Functions

void Initialize (Expression *each, Expression *subject, Statement *body)
 
Expressioneach () const
 
Expressionsubject () const
 
- Public Member Functions inherited from IterationStatement
virtual IterationStatementAsIterationStatement () V8_FINAL V8_OVERRIDE
 
Statementbody () const
 
BailoutId OsrEntryId () const
 
virtual BailoutId ContinueId () const =0
 
virtual BailoutId StackCheckId () const =0
 
Label * continue_target ()
 
- Public Member Functions inherited from BreakableStatement
ZoneStringListlabels () const
 
virtual BreakableStatementAsBreakableStatement () V8_FINAL V8_OVERRIDE
 
Label * break_target ()
 
bool is_target_for_anonymous () const
 
BailoutId EntryId () const
 
BailoutId ExitId () const
 
- Public Member Functions inherited from Statement
 Statement (Zone *zone, int position)
 
bool IsEmpty ()
 
virtual bool IsJump () const
 
- Public Member Functions inherited from AstNode
void * operator new (size_t size, Zone *zone)
 
 AstNode (int position)
 
virtual ~AstNode ()
 
virtual void Accept (AstVisitor *v)=0
 
virtual NodeType node_type () const =0
 
int position () const
 
virtual TargetCollector * AsTargetCollector ()
 
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

 ForEachStatement (Zone *zone, ZoneStringList *labels, int pos)
 
- Protected Member Functions inherited from IterationStatement
 IterationStatement (Zone *zone, ZoneStringList *labels, int pos)
 
void Initialize (Statement *body)
 
- Protected Member Functions inherited from BreakableStatement
 BreakableStatement (Zone *zone, ZoneStringList *labels, BreakableType breakable_type, int position)
 

Additional Inherited Members

- Static Protected Member Functions inherited from AstNode
static int GetNextId (Zone *zone)
 
static int ReserveIdRange (Zone *zone, int n)
 
static TypeFeedbackId reuse (BailoutId id)
 

Detailed Description

Definition at line 889 of file ast.h.

Member Enumeration Documentation

enum VisitMode
Enumerator
ENUMERATE 
ITERATE 

Definition at line 891 of file ast.h.

Constructor & Destructor Documentation

ForEachStatement ( Zone zone,
ZoneStringList labels,
int  pos 
)
inlineprotected

Definition at line 906 of file ast.h.

Member Function Documentation

Expression* each ( ) const
inline

Definition at line 902 of file ast.h.

void Initialize ( Expression each,
Expression subject,
Statement body 
)
inline
Expression* subject ( ) const
inline

Definition at line 903 of file ast.h.


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