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

#include <ast.h>

Inheritance diagram for Block:
Collaboration diagram for Block:

Public Member Functions

void AddStatement (Statement *statement, Zone *zone)
 
ZoneList< Statement * > * statements ()
 
bool is_initializer_block () const
 
Scopescope () const
 
void set_scope (Scope *scope)
 
- 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 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

 Block (Isolate *isolate, ZoneStringList *labels, int capacity, bool is_initializer_block, Zone *zone)
 
- 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 408 of file ast.h.

Constructor & Destructor Documentation

Block ( Isolate isolate,
ZoneStringList labels,
int  capacity,
bool  is_initializer_block,
Zone zone 
)
inlineprotected

Definition at line 423 of file ast.h.

Member Function Documentation

void AddStatement ( Statement statement,
Zone zone 
)
inline

Definition at line 412 of file ast.h.

bool is_initializer_block ( ) const
inline

Definition at line 417 of file ast.h.

Scope* scope ( ) const
inline

Definition at line 419 of file ast.h.

void set_scope ( Scope scope)
inline

Definition at line 420 of file ast.h.

ZoneList<Statement*>* statements ( )
inline

Definition at line 416 of file ast.h.


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