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

#include <instruction-selector-impl.h>

Collaboration diagram for v8::internal::compiler::SwitchInfoT:

Public Types

using CaseInfo = CaseInfoT
 

Public Member Functions

 SwitchInfoT (ZoneVector< CaseInfo > const &cases, int32_t min_value, int32_t max_value, turboshaft::Block *default_branch)
 
std::vector< CaseInfoCasesSortedByValue () const
 
const ZoneVector< CaseInfo > & CasesUnsorted () const
 
int32_t min_value () const
 
int32_t max_value () const
 
size_t value_range () const
 
size_t case_count () const
 
turboshaft::Blockdefault_branch () const
 

Private Attributes

const ZoneVector< CaseInfo > & cases_
 
int32_t min_value_
 
int32_t max_value_
 
size_t value_range_
 
turboshaft::Blockdefault_branch_
 

Detailed Description

Definition at line 30 of file instruction-selector-impl.h.

Member Typedef Documentation

◆ CaseInfo

Constructor & Destructor Documentation

◆ SwitchInfoT()

v8::internal::compiler::SwitchInfoT::SwitchInfoT ( ZoneVector< CaseInfo > const & cases,
int32_t min_value,
int32_t max_value,
turboshaft::Block * default_branch )
inline

Definition at line 33 of file instruction-selector-impl.h.

Here is the call graph for this function:

Member Function Documentation

◆ case_count()

size_t v8::internal::compiler::SwitchInfoT::case_count ( ) const
inline

Definition at line 60 of file instruction-selector-impl.h.

Here is the caller graph for this function:

◆ CasesSortedByValue()

std::vector< CaseInfo > v8::internal::compiler::SwitchInfoT::CasesSortedByValue ( ) const
inline

Definition at line 50 of file instruction-selector-impl.h.

Here is the caller graph for this function:

◆ CasesUnsorted()

const ZoneVector< CaseInfo > & v8::internal::compiler::SwitchInfoT::CasesUnsorted ( ) const
inline

Definition at line 56 of file instruction-selector-impl.h.

Here is the caller graph for this function:

◆ default_branch()

turboshaft::Block * v8::internal::compiler::SwitchInfoT::default_branch ( ) const
inline

Definition at line 61 of file instruction-selector-impl.h.

Here is the caller graph for this function:

◆ max_value()

int32_t v8::internal::compiler::SwitchInfoT::max_value ( ) const
inline

Definition at line 58 of file instruction-selector-impl.h.

◆ min_value()

int32_t v8::internal::compiler::SwitchInfoT::min_value ( ) const
inline

Definition at line 57 of file instruction-selector-impl.h.

Here is the caller graph for this function:

◆ value_range()

size_t v8::internal::compiler::SwitchInfoT::value_range ( ) const
inline

Definition at line 59 of file instruction-selector-impl.h.

Here is the caller graph for this function:

Member Data Documentation

◆ cases_

const ZoneVector<CaseInfo>& v8::internal::compiler::SwitchInfoT::cases_
private

Definition at line 64 of file instruction-selector-impl.h.

◆ default_branch_

turboshaft::Block* v8::internal::compiler::SwitchInfoT::default_branch_
private

Definition at line 68 of file instruction-selector-impl.h.

◆ max_value_

int32_t v8::internal::compiler::SwitchInfoT::max_value_
private

Definition at line 66 of file instruction-selector-impl.h.

◆ min_value_

int32_t v8::internal::compiler::SwitchInfoT::min_value_
private

Definition at line 65 of file instruction-selector-impl.h.

◆ value_range_

size_t v8::internal::compiler::SwitchInfoT::value_range_
private

Definition at line 67 of file instruction-selector-impl.h.


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