V8 Project
v8::internal::Statement Class Reference

#include <ast.h>

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

Public Member Functions

 Statement (Zone *zone, int position)
 
bool IsEmpty ()
 
virtual bool IsJump () const
 
- Public Member Functions inherited from v8::internal::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 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)
 

Additional Inherited Members

- Public Types inherited from v8::internal::AstNode
enum  NodeType { kInvalid = -1 }
 
- Static Protected Member Functions inherited from v8::internal::AstNode
static TypeFeedbackId reuse (BailoutId id)
 

Detailed Description

Definition at line 255 of file ast.h.

Constructor & Destructor Documentation

◆ Statement()

v8::internal::Statement::Statement ( Zone zone,
int  position 
)
inlineexplicit

Definition at line 257 of file ast.h.

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

Member Function Documentation

◆ IsEmpty()

bool v8::internal::Statement::IsEmpty ( )
inline

Definition at line 259 of file ast.h.

259 { return AsEmptyStatement() != 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.

Referenced by v8::internal::Parser::ParseBlock(), v8::internal::Parser::ParseModuleLiteral(), v8::internal::Parser::ParseScopedBlock(), and v8::internal::Parser::ParseSourceElements().

+ Here is the caller graph for this function:

◆ IsJump()

virtual bool v8::internal::Statement::IsJump ( ) const
inlinevirtual

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

Definition at line 260 of file ast.h.

260 { return false; }

Referenced by v8::internal::AstTyper::VisitStatements(), and v8::internal::HOptimizedGraphBuilder::VisitStatements().

+ Here is the caller graph for this function:

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