V8 Project
v8::internal::IterationStatement Class Referenceabstract

#include <ast.h>

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

Public Member Functions

virtual IterationStatementAsIterationStatement () FINAL OVERRIDE
 
Statementbody () const
 
BailoutId OsrEntryId () const
 
virtual BailoutId ContinueId () const =0
 
virtual BailoutId StackCheckId () const =0
 
Label * continue_target ()
 
- Public Member Functions inherited from v8::internal::BreakableStatement
ZoneList< const AstRawString * > * labels () const
 
virtual BreakableStatementAsBreakableStatement () FINAL OVERRIDE
 
Label * break_target ()
 
bool is_target_for_anonymous () const
 
BailoutId EntryId () const
 
BailoutId ExitId () const
 
- Public Member Functions inherited from v8::internal::Statement
 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 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)
 

Protected Member Functions

 IterationStatement (Zone *zone, ZoneList< const AstRawString * > *labels, int pos, IdGen *id_gen)
 
void Initialize (Statement *body)
 
- Protected Member Functions inherited from v8::internal::BreakableStatement
 BreakableStatement (Zone *zone, ZoneList< const AstRawString * > *labels, BreakableType breakable_type, int position, IdGen *id_gen)
 

Private Attributes

Statementbody_
 
Label continue_target_
 
const BailoutId osr_entry_id_
 

Additional Inherited Members

- Public Types inherited from v8::internal::BreakableStatement
enum  BreakableType { TARGET_FOR_ANONYMOUS , TARGET_FOR_NAMED_ONLY }
 
- 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 725 of file ast.h.

Constructor & Destructor Documentation

◆ IterationStatement()

v8::internal::IterationStatement::IterationStatement ( Zone zone,
ZoneList< const AstRawString * > *  labels,
int  pos,
IdGen id_gen 
)
inlineprotected

Definition at line 742 of file ast.h.

744  : BreakableStatement(zone, labels, TARGET_FOR_ANONYMOUS, pos, id_gen),
745  body_(NULL),
746  osr_entry_id_(id_gen->GetNextId()) {}
ZoneList< const AstRawString * > * labels() const
Definition: ast.h:410
BreakableStatement(Zone *zone, ZoneList< const AstRawString * > *labels, BreakableType breakable_type, int position, IdGen *id_gen)
Definition: ast.h:429
const BailoutId osr_entry_id_
Definition: ast.h:756
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

Member Function Documentation

◆ AsIterationStatement()

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

Reimplemented from v8::internal::AstNode.

Definition at line 728 of file ast.h.

728  {
729  return this;
730  }

Referenced by v8::internal::Parser::LookupContinueTarget().

+ Here is the caller graph for this function:

◆ body()

Statement* v8::internal::IterationStatement::body ( ) const
inline

Definition at line 732 of file ast.h.

732 { return body_; }

References body_.

Referenced by v8::internal::ForEachStatement::Initialize(), Initialize(), v8::internal::compiler::AstGraphBuilder::VisitIterationBody(), v8::internal::Processor::VisitIterationStatement(), and v8::internal::HOptimizedGraphBuilder::VisitLoopBody().

+ Here is the caller graph for this function:

◆ continue_target()

Label* v8::internal::IterationStatement::continue_target ( )
inline

Definition at line 739 of file ast.h.

739 { return &continue_target_; }

References continue_target_.

Referenced by v8::internal::Parser::LookupContinueTarget().

+ Here is the caller graph for this function:

◆ ContinueId()

virtual BailoutId v8::internal::IterationStatement::ContinueId ( ) const
pure virtual

◆ Initialize()

void v8::internal::IterationStatement::Initialize ( Statement body)
inlineprotected

Definition at line 748 of file ast.h.

748  {
749  body_ = body;
750  }
Statement * body() const
Definition: ast.h:732

References body(), and body_.

Referenced by v8::internal::FINAL< kOperandKind, kNumCachedOperands >::Initialize(), and v8::internal::ForEachStatement::Initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OsrEntryId()

BailoutId v8::internal::IterationStatement::OsrEntryId ( ) const
inline

Definition at line 734 of file ast.h.

734 { return osr_entry_id_; }

References osr_entry_id_.

Referenced by v8::internal::HOsrBuilder::BuildOsrLoopEntry(), v8::internal::HOsrBuilder::HasOsrEntryAt(), and v8::internal::AstTyper::ObserveTypesAtOsrEntry().

+ Here is the caller graph for this function:

◆ StackCheckId()

virtual BailoutId v8::internal::IterationStatement::StackCheckId ( ) const
pure virtual

Member Data Documentation

◆ body_

Statement* v8::internal::IterationStatement::body_
private

Definition at line 753 of file ast.h.

Referenced by body(), and Initialize().

◆ continue_target_

Label v8::internal::IterationStatement::continue_target_
private

Definition at line 754 of file ast.h.

Referenced by continue_target().

◆ osr_entry_id_

const BailoutId v8::internal::IterationStatement::osr_entry_id_
private

Definition at line 756 of file ast.h.

Referenced by OsrEntryId().


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