v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::torque::Block Class Reference

#include <cfg.h>

Collaboration diagram for v8::internal::torque::Block:

Public Member Functions

 Block (ControlFlowGraph *cfg, size_t id, std::optional< Stack< const Type * > > input_types, bool is_deferred)
 
void Add (Instruction instruction)
 
bool HasInputTypes () const
 
const Stack< const Type * > & InputTypes () const
 
void SetInputTypes (const Stack< const Type * > &input_types)
 
void Retype ()
 
std::vector< Instruction > & instructions ()
 
const std::vector< Instruction > & instructions () const
 
bool IsComplete () const
 
size_t id () const
 
bool IsDeferred () const
 
void MergeInputDefinitions (const Stack< DefinitionLocation > &input_definitions, Worklist< Block * > *worklist)
 
bool HasInputDefinitions () const
 
const Stack< DefinitionLocation > & InputDefinitions () const
 
bool IsDead () const
 

Private Attributes

ControlFlowGraphcfg_
 
std::vector< Instructioninstructions_
 
std::optional< Stack< const Type * > > input_types_
 
std::optional< Stack< DefinitionLocation > > input_definitions_
 
const size_t id_
 
bool is_deferred_
 

Detailed Description

Definition at line 23 of file cfg.h.

Constructor & Destructor Documentation

◆ Block()

v8::internal::torque::Block::Block ( ControlFlowGraph * cfg,
size_t id,
std::optional< Stack< const Type * > > input_types,
bool is_deferred )
inlineexplicit

Definition at line 25 of file cfg.h.

Member Function Documentation

◆ Add()

void v8::internal::torque::Block::Add ( Instruction instruction)
inline

Definition at line 32 of file cfg.h.

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

◆ HasInputDefinitions()

bool v8::internal::torque::Block::HasInputDefinitions ( ) const
inline

Definition at line 76 of file cfg.h.

Here is the caller graph for this function:

◆ HasInputTypes()

bool v8::internal::torque::Block::HasInputTypes ( ) const
inline

Definition at line 37 of file cfg.h.

◆ id()

size_t v8::internal::torque::Block::id ( ) const
inline

Definition at line 52 of file cfg.h.

Here is the caller graph for this function:

◆ InputDefinitions()

const Stack< DefinitionLocation > & v8::internal::torque::Block::InputDefinitions ( ) const
inline

Definition at line 79 of file cfg.h.

Here is the call graph for this function:

◆ InputTypes()

const Stack< const Type * > & v8::internal::torque::Block::InputTypes ( ) const
inline

Definition at line 38 of file cfg.h.

Here is the caller graph for this function:

◆ instructions() [1/2]

std::vector< Instruction > & v8::internal::torque::Block::instructions ( )
inline

Definition at line 47 of file cfg.h.

Here is the caller graph for this function:

◆ instructions() [2/2]

const std::vector< Instruction > & v8::internal::torque::Block::instructions ( ) const
inline

Definition at line 48 of file cfg.h.

◆ IsComplete()

bool v8::internal::torque::Block::IsComplete ( ) const
inline

Definition at line 49 of file cfg.h.

Here is the caller graph for this function:

◆ IsDead()

bool v8::internal::torque::Block::IsDead ( ) const
inline

Definition at line 84 of file cfg.h.

Here is the call graph for this function:

◆ IsDeferred()

bool v8::internal::torque::Block::IsDeferred ( ) const
inline

Definition at line 53 of file cfg.h.

◆ MergeInputDefinitions()

void v8::internal::torque::Block::MergeInputDefinitions ( const Stack< DefinitionLocation > & input_definitions,
Worklist< Block * > * worklist )
inline

Definition at line 55 of file cfg.h.

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

◆ Retype()

void v8::internal::torque::Block::Retype ( )
inline

Definition at line 40 of file cfg.h.

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

◆ SetInputTypes()

void v8::internal::torque::Block::SetInputTypes ( const Stack< const Type * > & input_types)

Definition at line 13 of file cfg.cc.

Here is the call graph for this function:

Member Data Documentation

◆ cfg_

ControlFlowGraph* v8::internal::torque::Block::cfg_
private

Definition at line 87 of file cfg.h.

◆ id_

const size_t v8::internal::torque::Block::id_
private

Definition at line 91 of file cfg.h.

◆ input_definitions_

std::optional<Stack<DefinitionLocation> > v8::internal::torque::Block::input_definitions_
private

Definition at line 90 of file cfg.h.

◆ input_types_

std::optional<Stack<const Type*> > v8::internal::torque::Block::input_types_
private

Definition at line 89 of file cfg.h.

◆ instructions_

std::vector<Instruction> v8::internal::torque::Block::instructions_
private

Definition at line 88 of file cfg.h.

◆ is_deferred_

bool v8::internal::torque::Block::is_deferred_
private

Definition at line 92 of file cfg.h.


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