V8 Project
v8::internal::AstNode Class Referenceabstract

#include <ast.h>

+ Inheritance diagram for v8::internal::AstNode:
+ Collaboration diagram for v8::internal::AstNode:

Classes

class  IdGen
 

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 v8::internal::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 TypeFeedbackId reuse (BailoutId id)
 

Private Member Functions

void * operator new (size_t size)
 

Private Attributes

int position_
 

Friends

class CaseClause
 

Detailed Description

Definition at line 184 of file ast.h.

Member Enumeration Documentation

◆ NodeType

Enumerator
kInvalid 

Definition at line 203 of file ast.h.

203  {
205  kInvalid = -1
206  };
#define DECLARE_TYPE_ENUM(type)
Definition: ast.h:202
#define AST_NODE_LIST(V)
Definition: ast.h:102

Constructor & Destructor Documentation

◆ AstNode()

v8::internal::AstNode::AstNode ( int  position)
inlineexplicit

Definition at line 213 of file ast.h.

213 : position_(position) {}
int position() const
Definition: ast.h:218

◆ ~AstNode()

virtual v8::internal::AstNode::~AstNode ( )
inlinevirtual

Definition at line 214 of file ast.h.

214 {}

Member Function Documentation

◆ Accept()

virtual void v8::internal::AstNode::Accept ( AstVisitor v)
pure virtual

Implemented in v8::internal::FINAL< kOperandKind, kNumCachedOperands >.

Referenced by v8::internal::compiler::AstGraphBuilder::VisitForEffect(), v8::internal::compiler::AstGraphBuilder::VisitForTest(), v8::internal::compiler::AstGraphBuilder::VisitForValue(), and v8::internal::Scope::VisitIllegalRedeclaration().

+ Here is the caller graph for this function:

◆ AsBreakableStatement()

virtual BreakableStatement* v8::internal::AstNode::AsBreakableStatement ( )
inlinevirtual

Reimplemented in v8::internal::BreakableStatement.

Definition at line 233 of file ast.h.

233 { return NULL; }
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL

References NULL.

◆ AsIterationStatement()

virtual IterationStatement* v8::internal::AstNode::AsIterationStatement ( )
inlinevirtual

Reimplemented in v8::internal::IterationStatement.

Definition at line 234 of file ast.h.

234 { return NULL; }

References NULL.

◆ AsMaterializedLiteral()

virtual MaterializedLiteral* v8::internal::AstNode::AsMaterializedLiteral ( )
inlinevirtual

Reimplemented in v8::internal::MaterializedLiteral.

Definition at line 235 of file ast.h.

235 { return NULL; }

References NULL.

Referenced by v8::internal::CompileTimeValue::IsCompileTimeValue().

+ Here is the caller graph for this function:

◆ AsTargetCollector()

virtual TargetCollector* v8::internal::AstNode::AsTargetCollector ( )
inlinevirtual

Reimplemented in v8::internal::FINAL< kOperandKind, kNumCachedOperands >.

Definition at line 232 of file ast.h.

232 { return NULL; }

References NULL.

◆ node_type()

virtual NodeType v8::internal::AstNode::node_type ( ) const
pure virtual

◆ operator new() [1/2]

void* v8::internal::AstNode::operator new ( size_t  size)
private

◆ operator new() [2/2]

void* v8::internal::AstNode::operator new ( size_t  size,
Zone zone 
)
inline

Definition at line 209 of file ast.h.

209  {
210  return zone->New(static_cast<int>(size));
211  }
enable harmony numeric enable harmony object literal extensions Optimize object size

References size.

◆ position()

int v8::internal::AstNode::position ( ) const
inline

Definition at line 218 of file ast.h.

218 { return position_; }

References position_.

Referenced by v8::internal::CheckAndDeclareArrowParameter(), v8::internal::Parser::Declare(), v8::internal::Parser::DesugarLetBindingsInForStatement(), v8::internal::ParserTraits::GetIterator(), v8::internal::FullCodeGenerator::SetExpressionPosition(), and v8::internal::FullCodeGenerator::SetStatementPosition().

+ Here is the caller graph for this function:

◆ reuse()

static TypeFeedbackId v8::internal::AstNode::reuse ( BailoutId  id)
inlinestaticprotected

Definition at line 239 of file ast.h.

239  {
240  return TypeFeedbackId(id.ToInt());
241  }

Friends And Related Function Documentation

◆ CaseClause

friend class CaseClause
friend

Definition at line 249 of file ast.h.

Member Data Documentation

◆ position_

int v8::internal::AstNode::position_
private

Definition at line 251 of file ast.h.

Referenced by position().


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