V8 Project
v8::internal::BreakableStatement Class Reference

#include <ast.h>

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

Public Types

enum  BreakableType { TARGET_FOR_ANONYMOUS , TARGET_FOR_NAMED_ONLY }
 
- Public Types inherited from v8::internal::AstNode
enum  NodeType { kInvalid = -1 }
 

Public Member Functions

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 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)
 

Protected Member Functions

 BreakableStatement (Zone *zone, ZoneList< const AstRawString * > *labels, BreakableType breakable_type, int position, IdGen *id_gen)
 

Private Attributes

ZoneList< const AstRawString * > * labels_
 
BreakableType breakable_type_
 
Label break_target_
 
const BailoutId entry_id_
 
const BailoutId exit_id_
 

Additional Inherited Members

- Static Protected Member Functions inherited from v8::internal::AstNode
static TypeFeedbackId reuse (BailoutId id)
 

Detailed Description

Definition at line 401 of file ast.h.

Member Enumeration Documentation

◆ BreakableType

Enumerator
TARGET_FOR_ANONYMOUS 
TARGET_FOR_NAMED_ONLY 

Definition at line 403 of file ast.h.

Constructor & Destructor Documentation

◆ BreakableStatement()

v8::internal::BreakableStatement::BreakableStatement ( Zone zone,
ZoneList< const AstRawString * > *  labels,
BreakableType  breakable_type,
int  position,
IdGen id_gen 
)
inlineprotected

Definition at line 429 of file ast.h.

431  : Statement(zone, position),
432  labels_(labels),
433  breakable_type_(breakable_type),
434  entry_id_(id_gen->GetNextId()),
435  exit_id_(id_gen->GetNextId()) {
436  DCHECK(labels == NULL || labels->length() > 0);
437  }
int position() const
Definition: ast.h:218
const BailoutId exit_id_
Definition: ast.h:445
ZoneList< const AstRawString * > * labels_
Definition: ast.h:441
ZoneList< const AstRawString * > * labels() const
Definition: ast.h:410
BreakableType breakable_type_
Definition: ast.h:442
const BailoutId entry_id_
Definition: ast.h:444
Statement(Zone *zone, int position)
Definition: ast.h:257
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
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, labels(), and NULL.

+ Here is the call graph for this function:

Member Function Documentation

◆ AsBreakableStatement()

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

Reimplemented from v8::internal::AstNode.

Definition at line 413 of file ast.h.

413  {
414  return this;
415  }

Referenced by v8::internal::Parser::LookupBreakTarget(), and v8::internal::Parser::TargetStackContainsLabel().

+ Here is the caller graph for this function:

◆ break_target()

Label* v8::internal::BreakableStatement::break_target ( )
inline

Definition at line 418 of file ast.h.

418 { return &break_target_; }

References break_target_.

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

+ Here is the caller graph for this function:

◆ EntryId()

BailoutId v8::internal::BreakableStatement::EntryId ( ) const
inline

Definition at line 425 of file ast.h.

425 { return entry_id_; }

References entry_id_.

Referenced by v8::internal::HOsrBuilder::BuildOsrLoopEntry().

+ Here is the caller graph for this function:

◆ ExitId()

BailoutId v8::internal::BreakableStatement::ExitId ( ) const
inline

Definition at line 426 of file ast.h.

426 { return exit_id_; }

References exit_id_.

Referenced by v8::internal::HOptimizedGraphBuilder::CreateLoop().

+ Here is the caller graph for this function:

◆ is_target_for_anonymous()

bool v8::internal::BreakableStatement::is_target_for_anonymous ( ) const
inline

Definition at line 421 of file ast.h.

421  {
423  }

References breakable_type_, and TARGET_FOR_ANONYMOUS.

Referenced by v8::internal::Parser::LookupBreakTarget(), and v8::internal::Parser::LookupContinueTarget().

+ Here is the caller graph for this function:

◆ labels()

ZoneList<const AstRawString*>* v8::internal::BreakableStatement::labels ( ) const
inline

Definition at line 410 of file ast.h.

410 { return labels_; }

References labels_.

Referenced by BreakableStatement(), v8::internal::Parser::LookupBreakTarget(), v8::internal::Parser::LookupContinueTarget(), and v8::internal::Parser::TargetStackContainsLabel().

+ Here is the caller graph for this function:

Member Data Documentation

◆ break_target_

Label v8::internal::BreakableStatement::break_target_
private

Definition at line 443 of file ast.h.

Referenced by break_target().

◆ breakable_type_

BreakableType v8::internal::BreakableStatement::breakable_type_
private

Definition at line 442 of file ast.h.

Referenced by is_target_for_anonymous().

◆ entry_id_

const BailoutId v8::internal::BreakableStatement::entry_id_
private

Definition at line 444 of file ast.h.

Referenced by EntryId().

◆ exit_id_

const BailoutId v8::internal::BreakableStatement::exit_id_
private

Definition at line 445 of file ast.h.

Referenced by ExitId().

◆ labels_

ZoneList<const AstRawString*>* v8::internal::BreakableStatement::labels_
private

Definition at line 441 of file ast.h.

Referenced by labels().


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