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
AstNode Class Referenceabstract

#include <ast.h>

Inheritance diagram for AstNode:
Collaboration diagram for AstNode:

Public Types

enum  Type { kInvalid = -1 }
 

Public Member Functions

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)
 

Static Protected Member Functions

static int GetNextId (Isolate *isolate)
 
static int ReserveIdRange (Isolate *isolate, int n)
 
static TypeFeedbackId reuse (BailoutId id)
 

Friends

class CaseClause
 

Detailed Description

Definition at line 190 of file ast.h.

Member Enumeration Documentation

enum Type
Enumerator
kInvalid 

Definition at line 193 of file ast.h.

Constructor & Destructor Documentation

AstNode ( )
inline

Definition at line 203 of file ast.h.

virtual ~AstNode ( )
inlinevirtual

Definition at line 205 of file ast.h.

Member Function Documentation

virtual void Accept ( AstVisitor *  v)
pure virtual
virtual BreakableStatement* AsBreakableStatement ( )
inlinevirtual

Reimplemented in BreakableStatement.

Definition at line 218 of file ast.h.

References v8::internal::NULL.

virtual IterationStatement* AsIterationStatement ( )
inlinevirtual

Reimplemented in IterationStatement.

Definition at line 219 of file ast.h.

References v8::internal::NULL.

virtual MaterializedLiteral* AsMaterializedLiteral ( )
inlinevirtual

Reimplemented in MaterializedLiteral.

Definition at line 220 of file ast.h.

References v8::internal::NULL.

Referenced by CompileTimeValue::IsCompileTimeValue(), and ObjectLiteral::Property::Property().

virtual TargetCollector* AsTargetCollector ( )
inlinevirtual

Reimplemented in TargetCollector.

Definition at line 217 of file ast.h.

References v8::internal::NULL.

static int GetNextId ( Isolate isolate)
inlinestaticprotected

Definition at line 223 of file ast.h.

References AstNode::ReserveIdRange().

virtual Type node_type ( ) const
pure virtual

Implemented in TargetCollector.

void* operator new ( size_t  size,
Zone zone 
)
inline

Definition at line 199 of file ast.h.

static int ReserveIdRange ( Isolate isolate,
int  n 
)
inlinestaticprotected

Definition at line 227 of file ast.h.

Referenced by AstNode::GetNextId().

Friends And Related Function Documentation

friend class CaseClause
friend

Definition at line 244 of file ast.h.


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