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

#include <control-builders.h>

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

Public Member Functions

 IfBuilder (StructuredGraphBuilder *builder)
 
void If (Node *condition)
 
void Then ()
 
void Else ()
 
void End ()
 
- Public Member Functions inherited from v8::internal::compiler::ControlBuilder
 ControlBuilder (StructuredGraphBuilder *builder)
 
virtual ~ControlBuilder ()
 
virtual void Break ()
 
virtual void Continue ()
 

Private Attributes

Environmentthen_environment_
 
Environmentelse_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 44 of file control-builders.h.

Constructor & Destructor Documentation

◆ IfBuilder()

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

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

47  : 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

◆ Else()

void v8::internal::compiler::IfBuilder::Else ( )

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

References v8::internal::compiler::ControlBuilder::builder_, else_environment_, v8::internal::compiler::ControlBuilder::environment(), v8::internal::compiler::StructuredGraphBuilder::NewIfFalse(), v8::internal::compiler::StructuredGraphBuilder::NewMerge(), v8::internal::compiler::ControlBuilder::set_environment(), and then_environment_.

Referenced by v8::internal::compiler::LoopBuilder::BreakUnless(), v8::internal::compiler::AstGraphBuilder::BuildHoleCheckSilent(), v8::internal::compiler::AstGraphBuilder::BuildHoleCheckThrow(), and v8::internal::compiler::AstGraphBuilder::VisitLogicalExpression().

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

◆ End()

void v8::internal::compiler::IfBuilder::End ( )

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

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

Referenced by v8::internal::compiler::LoopBuilder::BreakUnless(), v8::internal::compiler::AstGraphBuilder::BuildHoleCheckSilent(), v8::internal::compiler::AstGraphBuilder::BuildHoleCheckThrow(), and v8::internal::compiler::AstGraphBuilder::VisitLogicalExpression().

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

◆ If()

void v8::internal::compiler::IfBuilder::If ( Node *  condition)

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

References v8::internal::compiler::ControlBuilder::builder_, v8::internal::compiler::StructuredGraphBuilder::Environment::CopyForConditional(), else_environment_, v8::internal::compiler::ControlBuilder::environment(), and v8::internal::compiler::StructuredGraphBuilder::NewBranch().

Referenced by v8::internal::compiler::LoopBuilder::BreakUnless(), v8::internal::compiler::AstGraphBuilder::BuildHoleCheckSilent(), v8::internal::compiler::AstGraphBuilder::BuildHoleCheckThrow(), and v8::internal::compiler::AstGraphBuilder::VisitLogicalExpression().

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

◆ Then()

void v8::internal::compiler::IfBuilder::Then ( )

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

References v8::internal::compiler::ControlBuilder::builder_, and v8::internal::compiler::StructuredGraphBuilder::NewIfTrue().

Referenced by v8::internal::compiler::LoopBuilder::BreakUnless(), v8::internal::compiler::AstGraphBuilder::BuildHoleCheckSilent(), v8::internal::compiler::AstGraphBuilder::BuildHoleCheckThrow(), and v8::internal::compiler::AstGraphBuilder::VisitLogicalExpression().

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

Member Data Documentation

◆ else_environment_

Environment* v8::internal::compiler::IfBuilder::else_environment_
private

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

Referenced by Else(), and If().

◆ then_environment_

Environment* v8::internal::compiler::IfBuilder::then_environment_
private

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

Referenced by Else(), and End().


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