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

#include <schedule.h>

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

Public Types

enum  Control {
  kNone , kGoto , kBranch , kReturn ,
  kThrow
}
 

Public Member Functions

 BasicBlockData (Zone *zone)
 
bool IsLoopHeader () const
 
bool LoopContains (BasicBlockData *block) const
 
int first_instruction_index ()
 
int last_instruction_index ()
 

Public Attributes

int32_t rpo_number_
 
BasicBlock * dominator_
 
BasicBlock * loop_header_
 
int32_t loop_depth_
 
int32_t loop_end_
 
int32_t code_start_
 
int32_t code_end_
 
bool deferred_
 
Control control_
 
Node * control_input_
 
NodeVector nodes_
 

Detailed Description

Definition at line 30 of file schedule.h.

Member Enumeration Documentation

◆ Control

Enumerator
kNone 
kGoto 
kBranch 
kReturn 
kThrow 

Definition at line 33 of file schedule.h.

33  {
34  kNone, // Control not initialized yet.
35  kGoto, // Goto a single successor block.
36  kBranch, // Branch if true to first successor, otherwise second.
37  kReturn, // Return a value from this method.
38  kThrow // Throw an exception.
39  };

Constructor & Destructor Documentation

◆ BasicBlockData()

v8::internal::compiler::BasicBlockData::BasicBlockData ( Zone zone)
inlineexplicit

Definition at line 56 of file schedule.h.

57  : rpo_number_(-1),
60  loop_depth_(0),
61  loop_end_(-1),
62  code_start_(-1),
63  code_end_(-1),
64  deferred_(false),
65  control_(kNone),
67  nodes_(zone) {}
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

◆ first_instruction_index()

int v8::internal::compiler::BasicBlockData::first_instruction_index ( )
inline

Definition at line 77 of file schedule.h.

77  {
78  DCHECK(code_start_ >= 0);
79  DCHECK(code_end_ > 0);
81  return code_start_;
82  }
#define DCHECK(condition)
Definition: logging.h:205

References code_end_, code_start_, and DCHECK.

◆ IsLoopHeader()

bool v8::internal::compiler::BasicBlockData::IsLoopHeader ( ) const
inline

Definition at line 69 of file schedule.h.

69 { return loop_end_ >= 0; }

References loop_end_.

◆ last_instruction_index()

int v8::internal::compiler::BasicBlockData::last_instruction_index ( )
inline

Definition at line 83 of file schedule.h.

83  {
84  DCHECK(code_start_ >= 0);
85  DCHECK(code_end_ > 0);
87  return code_end_ - 1;
88  }

References code_end_, code_start_, and DCHECK.

◆ LoopContains()

bool v8::internal::compiler::BasicBlockData::LoopContains ( BasicBlockData block) const
inline

Definition at line 70 of file schedule.h.

70  {
71  // RPO numbers must be initialized.
72  DCHECK(rpo_number_ >= 0);
73  DCHECK(block->rpo_number_ >= 0);
74  if (loop_end_ < 0) return false; // This is not a loop.
75  return block->rpo_number_ >= rpo_number_ && block->rpo_number_ < loop_end_;
76  }

References DCHECK, loop_end_, and rpo_number_.

Member Data Documentation

◆ code_end_

int32_t v8::internal::compiler::BasicBlockData::code_end_

Definition at line 49 of file schedule.h.

Referenced by first_instruction_index(), and last_instruction_index().

◆ code_start_

int32_t v8::internal::compiler::BasicBlockData::code_start_

Definition at line 48 of file schedule.h.

Referenced by first_instruction_index(), and last_instruction_index().

◆ control_

Control v8::internal::compiler::BasicBlockData::control_

Definition at line 52 of file schedule.h.

◆ control_input_

Node* v8::internal::compiler::BasicBlockData::control_input_

Definition at line 53 of file schedule.h.

◆ deferred_

bool v8::internal::compiler::BasicBlockData::deferred_

Definition at line 50 of file schedule.h.

◆ dominator_

BasicBlock* v8::internal::compiler::BasicBlockData::dominator_

Definition at line 42 of file schedule.h.

◆ loop_depth_

int32_t v8::internal::compiler::BasicBlockData::loop_depth_

Definition at line 46 of file schedule.h.

◆ loop_end_

int32_t v8::internal::compiler::BasicBlockData::loop_end_

Definition at line 47 of file schedule.h.

Referenced by IsLoopHeader(), and LoopContains().

◆ loop_header_

BasicBlock* v8::internal::compiler::BasicBlockData::loop_header_

Definition at line 43 of file schedule.h.

◆ nodes_

NodeVector v8::internal::compiler::BasicBlockData::nodes_

Definition at line 54 of file schedule.h.

◆ rpo_number_

int32_t v8::internal::compiler::BasicBlockData::rpo_number_

Definition at line 41 of file schedule.h.

Referenced by LoopContains().


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