V8 Project
v8::internal::compiler::LoopBuilder Class Reference

#include <control-builders.h>

+ Inheritance diagram for v8::internal::compiler::LoopBuilder:
+ Collaboration diagram for v8::internal::compiler::LoopBuilder:

Public Member Functions

 LoopBuilder (StructuredGraphBuilder *builder)
 
void BeginLoop ()
 
void EndBody ()
 
void EndLoop ()
 
virtual void Continue ()
 
virtual void Break ()
 
void BreakUnless (Node *condition)
 
- Public Member Functions inherited from v8::internal::compiler::ControlBuilder
 ControlBuilder (StructuredGraphBuilder *builder)
 
virtual ~ControlBuilder ()
 

Private Attributes

Environmentloop_environment_
 
Environmentcontinue_environment_
 
Environmentbreak_environment_
 

Additional Inherited Members

- Protected Types inherited from v8::internal::compiler::ControlBuilder
typedef StructuredGraphBuilder Builder
 
typedef StructuredGraphBuilder::Environment Environment
 
- Protected Member Functions inherited from v8::internal::compiler::ControlBuilder
Zonezone () const
 
Environmentenvironment ()
 
void set_environment (Environment *env)
 
- Protected Attributes inherited from v8::internal::compiler::ControlBuilder
Builderbuilder_
 

Detailed Description

Definition at line 64 of file control-builders.h.

Constructor & Destructor Documentation

◆ LoopBuilder()

v8::internal::compiler::LoopBuilder::LoopBuilder ( StructuredGraphBuilder builder)
inlineexplicit

Definition at line 66 of file control-builders.h.

67  : ControlBuilder(builder),
ControlBuilder(StructuredGraphBuilder *builder)
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

◆ BeginLoop()

◆ Break()

void v8::internal::compiler::LoopBuilder::Break ( )
virtual

Reimplemented from v8::internal::compiler::ControlBuilder.

Definition at line 49 of file control-builders.cc.

References break_environment_, v8::internal::compiler::ControlBuilder::environment(), v8::internal::compiler::StructuredGraphBuilder::Environment::MarkAsUnreachable(), and v8::internal::compiler::StructuredGraphBuilder::Environment::Merge().

Referenced by BreakUnless().

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

◆ BreakUnless()

void v8::internal::compiler::LoopBuilder::BreakUnless ( Node *  condition)

Definition at line 67 of file control-builders.cc.

67  {
68  IfBuilder control_if(builder_);
69  control_if.If(condition);
70  control_if.Then();
71  control_if.Else();
72  Break();
73  control_if.End();
74 }

References Break(), v8::internal::compiler::ControlBuilder::builder_, v8::internal::compiler::IfBuilder::Else(), v8::internal::compiler::IfBuilder::End(), v8::internal::compiler::IfBuilder::If(), and v8::internal::compiler::IfBuilder::Then().

+ Here is the call graph for this function:

◆ Continue()

void v8::internal::compiler::LoopBuilder::Continue ( )
virtual

Reimplemented from v8::internal::compiler::ControlBuilder.

Definition at line 43 of file control-builders.cc.

References continue_environment_, v8::internal::compiler::ControlBuilder::environment(), v8::internal::compiler::StructuredGraphBuilder::Environment::MarkAsUnreachable(), and v8::internal::compiler::StructuredGraphBuilder::Environment::Merge().

+ Here is the call graph for this function:

◆ EndBody()

void v8::internal::compiler::LoopBuilder::EndBody ( )

Definition at line 55 of file control-builders.cc.

References continue_environment_, v8::internal::compiler::ControlBuilder::environment(), v8::internal::compiler::StructuredGraphBuilder::Environment::Merge(), and v8::internal::compiler::ControlBuilder::set_environment().

+ Here is the call graph for this function:

◆ EndLoop()

void v8::internal::compiler::LoopBuilder::EndLoop ( )

Definition at line 61 of file control-builders.cc.

References break_environment_, v8::internal::compiler::ControlBuilder::environment(), loop_environment_, v8::internal::compiler::StructuredGraphBuilder::Environment::Merge(), and v8::internal::compiler::ControlBuilder::set_environment().

+ Here is the call graph for this function:

Member Data Documentation

◆ break_environment_

Environment* v8::internal::compiler::LoopBuilder::break_environment_
private

Definition at line 87 of file control-builders.h.

Referenced by BeginLoop(), Break(), and EndLoop().

◆ continue_environment_

Environment* v8::internal::compiler::LoopBuilder::continue_environment_
private

Definition at line 86 of file control-builders.h.

Referenced by BeginLoop(), Continue(), and EndBody().

◆ loop_environment_

Environment* v8::internal::compiler::LoopBuilder::loop_environment_
private

Definition at line 85 of file control-builders.h.

Referenced by BeginLoop(), and EndLoop().


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