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

#include <ast.h>

Inheritance diagram for AstNode:
Collaboration diagram for AstNode:

Public Types

enum  NodeType { kInvalid = -1 }
 

Public Member Functions

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 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 (Zone *zone)
 
static int ReserveIdRange (Zone *zone, int n)
 
static TypeFeedbackId reuse (BailoutId id)
 

Friends

class CaseClause
 

Detailed Description

Definition at line 197 of file ast.h.

Member Enumeration Documentation

enum NodeType
Enumerator
kInvalid 

Definition at line 200 of file ast.h.

Constructor & Destructor Documentation

AstNode ( int  position)
inlineexplicit

Definition at line 210 of file ast.h.

virtual ~AstNode ( )
inlinevirtual

Definition at line 211 of file ast.h.

Member Function Documentation

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

Reimplemented in BreakableStatement.

Definition at line 225 of file ast.h.

References v8::internal::NULL.

virtual IterationStatement* AsIterationStatement ( )
inlinevirtual

Reimplemented in IterationStatement.

Definition at line 226 of file ast.h.

References v8::internal::NULL.

virtual MaterializedLiteral* AsMaterializedLiteral ( )
inlinevirtual

Reimplemented in MaterializedLiteral.

Definition at line 227 of file ast.h.

References v8::internal::NULL.

Referenced by CompileTimeValue::IsCompileTimeValue().

virtual TargetCollector* AsTargetCollector ( )
inlinevirtual

Reimplemented in V8_FINAL< kOperandKind, kNumCachedOperands >.

Definition at line 224 of file ast.h.

References v8::internal::NULL.

static int GetNextId ( Zone zone)
inlinestaticprotected

Definition at line 230 of file ast.h.

References AstNode::ReserveIdRange().

virtual NodeType node_type ( ) const
pure virtual
void* operator new ( size_t  size,
Zone zone 
)
inline

Definition at line 206 of file ast.h.

int position ( ) const
inline

Definition at line 215 of file ast.h.

Referenced by V8_FINAL< kOperandKind, kNumCachedOperands >::Init().

static int ReserveIdRange ( Zone zone,
int  n 
)
inlinestaticprotected

Definition at line 234 of file ast.h.

References Zone::isolate().

Referenced by AstNode::GetNextId().

Friends And Related Function Documentation

friend class CaseClause
friend

Definition at line 251 of file ast.h.


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