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

#include <bytecode-register.h>

Collaboration diagram for v8::internal::interpreter::Register:

Public Member Functions

constexpr Register (int index=kInvalidIndex)
 
constexpr int index () const
 
constexpr bool is_parameter () const
 
constexpr bool is_valid () const
 
constexpr int ToParameterIndex () const
 
constexpr bool is_receiver () const
 
constexpr bool is_function_closure () const
 
constexpr bool is_current_context () const
 
constexpr bool is_bytecode_array () const
 
constexpr bool is_bytecode_offset () const
 
constexpr bool is_feedback_vector () const
 
constexpr OperandSize SizeOfOperand () const
 
constexpr int32_t ToOperand () const
 
constexpr std::optional< BytecodeTryToShortStar () const
 
std::string ToString () const
 
constexpr bool operator== (const Register &other) const
 
constexpr bool operator!= (const Register &other) const
 
constexpr bool operator< (const Register &other) const
 
constexpr bool operator<= (const Register &other) const
 
constexpr bool operator> (const Register &other) const
 
constexpr bool operator>= (const Register &other) const
 

Static Public Member Functions

static constexpr Register FromParameterIndex (int index)
 
static constexpr Register receiver ()
 
static constexpr Register invalid_value ()
 
static constexpr Register function_closure ()
 
static constexpr Register current_context ()
 
static constexpr Register bytecode_array ()
 
static constexpr Register bytecode_offset ()
 
static constexpr Register feedback_vector ()
 
static constexpr Register argument_count ()
 
static constexpr Register virtual_accumulator ()
 
static constexpr Register FromOperand (int32_t operand)
 
static constexpr Register FromShortStar (Bytecode bytecode)
 

Private Attributes

int index_
 

Static Private Attributes

static constexpr int kInvalidIndex = kMaxInt
 
static constexpr int kRegisterFileStartOffset
 
static constexpr int kFirstParamRegisterIndex
 
static constexpr int kFunctionClosureRegisterIndex
 
static constexpr int kCurrentContextRegisterIndex
 
static constexpr int kBytecodeArrayRegisterIndex
 
static constexpr int kBytecodeOffsetRegisterIndex
 
static constexpr int kFeedbackVectorRegisterIndex
 
static constexpr int kCallerPCOffsetRegisterIndex
 
static constexpr int kArgumentCountRegisterIndex
 

Detailed Description

Definition at line 27 of file bytecode-register.h.

Constructor & Destructor Documentation

◆ Register()

v8::internal::interpreter::Register::Register ( int index = kInvalidIndex)
inlineexplicitconstexpr

Definition at line 29 of file bytecode-register.h.

Member Function Documentation

◆ argument_count()

Register v8::internal::interpreter::Register::argument_count ( )
staticconstexpr

Definition at line 259 of file bytecode-register.h.

◆ bytecode_array()

Register v8::internal::interpreter::Register::bytecode_array ( )
staticconstexpr

Definition at line 229 of file bytecode-register.h.

Here is the caller graph for this function:

◆ bytecode_offset()

Register v8::internal::interpreter::Register::bytecode_offset ( )
staticconstexpr

Definition at line 237 of file bytecode-register.h.

Here is the caller graph for this function:

◆ current_context()

Register v8::internal::interpreter::Register::current_context ( )
staticconstexpr

Definition at line 221 of file bytecode-register.h.

Here is the caller graph for this function:

◆ feedback_vector()

Register v8::internal::interpreter::Register::feedback_vector ( )
staticconstexpr

Definition at line 245 of file bytecode-register.h.

Here is the caller graph for this function:

◆ FromOperand()

static constexpr Register v8::internal::interpreter::Register::FromOperand ( int32_t operand)
inlinestaticconstexpr

Definition at line 77 of file bytecode-register.h.

Here is the caller graph for this function:

◆ FromParameterIndex()

Register v8::internal::interpreter::Register::FromParameterIndex ( int index)
staticconstexpr

Definition at line 201 of file bytecode-register.h.

Here is the caller graph for this function:

◆ FromShortStar()

static constexpr Register v8::internal::interpreter::Register::FromShortStar ( Bytecode bytecode)
inlinestaticconstexpr

Definition at line 81 of file bytecode-register.h.

Here is the caller graph for this function:

◆ function_closure()

Register v8::internal::interpreter::Register::function_closure ( )
staticconstexpr

Definition at line 213 of file bytecode-register.h.

Here is the caller graph for this function:

◆ index()

int v8::internal::interpreter::Register::index ( ) const
inlineconstexpr

Definition at line 31 of file bytecode-register.h.

Here is the caller graph for this function:

◆ invalid_value()

static constexpr Register v8::internal::interpreter::Register::invalid_value ( )
inlinestaticconstexpr

Definition at line 42 of file bytecode-register.h.

Here is the caller graph for this function:

◆ is_bytecode_array()

bool v8::internal::interpreter::Register::is_bytecode_array ( ) const
constexpr

Definition at line 233 of file bytecode-register.h.

◆ is_bytecode_offset()

bool v8::internal::interpreter::Register::is_bytecode_offset ( ) const
constexpr

Definition at line 241 of file bytecode-register.h.

◆ is_current_context()

bool v8::internal::interpreter::Register::is_current_context ( ) const
constexpr

Definition at line 225 of file bytecode-register.h.

Here is the caller graph for this function:

◆ is_feedback_vector()

bool v8::internal::interpreter::Register::is_feedback_vector ( ) const
constexpr

Definition at line 249 of file bytecode-register.h.

◆ is_function_closure()

bool v8::internal::interpreter::Register::is_function_closure ( ) const
constexpr

Definition at line 217 of file bytecode-register.h.

Here is the caller graph for this function:

◆ is_parameter()

bool v8::internal::interpreter::Register::is_parameter ( ) const
inlineconstexpr

Definition at line 32 of file bytecode-register.h.

Here is the caller graph for this function:

◆ is_receiver()

bool v8::internal::interpreter::Register::is_receiver ( ) const
inlineconstexpr

Definition at line 39 of file bytecode-register.h.

◆ is_valid()

bool v8::internal::interpreter::Register::is_valid ( ) const
inlineconstexpr

Definition at line 33 of file bytecode-register.h.

Here is the caller graph for this function:

◆ operator!=()

bool v8::internal::interpreter::Register::operator!= ( const Register & other) const
inlineconstexpr

Definition at line 103 of file bytecode-register.h.

◆ operator<()

bool v8::internal::interpreter::Register::operator< ( const Register & other) const
inlineconstexpr

Definition at line 106 of file bytecode-register.h.

◆ operator<=()

bool v8::internal::interpreter::Register::operator<= ( const Register & other) const
inlineconstexpr

Definition at line 109 of file bytecode-register.h.

◆ operator==()

bool v8::internal::interpreter::Register::operator== ( const Register & other) const
inlineconstexpr

Definition at line 100 of file bytecode-register.h.

◆ operator>()

bool v8::internal::interpreter::Register::operator> ( const Register & other) const
inlineconstexpr

Definition at line 112 of file bytecode-register.h.

◆ operator>=()

bool v8::internal::interpreter::Register::operator>= ( const Register & other) const
inlineconstexpr

Definition at line 115 of file bytecode-register.h.

◆ receiver()

static constexpr Register v8::internal::interpreter::Register::receiver ( )
inlinestaticconstexpr

Definition at line 38 of file bytecode-register.h.

Here is the caller graph for this function:

◆ SizeOfOperand()

OperandSize v8::internal::interpreter::Register::SizeOfOperand ( ) const
constexpr

Definition at line 263 of file bytecode-register.h.

◆ ToOperand()

int32_t v8::internal::interpreter::Register::ToOperand ( ) const
inlineconstexpr

Definition at line 74 of file bytecode-register.h.

Here is the caller graph for this function:

◆ ToParameterIndex()

int v8::internal::interpreter::Register::ToParameterIndex ( ) const
constexpr

Definition at line 208 of file bytecode-register.h.

Here is the caller graph for this function:

◆ ToString()

std::string v8::internal::interpreter::Register::ToString ( ) const

Definition at line 11 of file bytecode-register.cc.

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

◆ TryToShortStar()

std::optional< Bytecode > v8::internal::interpreter::Register::TryToShortStar ( ) const
inlineconstexpr

Definition at line 87 of file bytecode-register.h.

◆ virtual_accumulator()

Register v8::internal::interpreter::Register::virtual_accumulator ( )
staticconstexpr

Definition at line 254 of file bytecode-register.h.

Here is the caller graph for this function:

Member Data Documentation

◆ index_

int v8::internal::interpreter::Register::index_
private

Definition at line 146 of file bytecode-register.h.

◆ kArgumentCountRegisterIndex

int v8::internal::interpreter::Register::kArgumentCountRegisterIndex
staticconstexprprivate
Initial value:

Definition at line 143 of file bytecode-register.h.

◆ kBytecodeArrayRegisterIndex

int v8::internal::interpreter::Register::kBytecodeArrayRegisterIndex
staticconstexprprivate

◆ kBytecodeOffsetRegisterIndex

int v8::internal::interpreter::Register::kBytecodeOffsetRegisterIndex
staticconstexprprivate

◆ kCallerPCOffsetRegisterIndex

int v8::internal::interpreter::Register::kCallerPCOffsetRegisterIndex
staticconstexprprivate

◆ kCurrentContextRegisterIndex

int v8::internal::interpreter::Register::kCurrentContextRegisterIndex
staticconstexprprivate

◆ kFeedbackVectorRegisterIndex

int v8::internal::interpreter::Register::kFeedbackVectorRegisterIndex
staticconstexprprivate

◆ kFirstParamRegisterIndex

int v8::internal::interpreter::Register::kFirstParamRegisterIndex
staticconstexprprivate

◆ kFunctionClosureRegisterIndex

int v8::internal::interpreter::Register::kFunctionClosureRegisterIndex
staticconstexprprivate

◆ kInvalidIndex

int v8::internal::interpreter::Register::kInvalidIndex = kMaxInt
staticconstexprprivate

Definition at line 122 of file bytecode-register.h.

◆ kRegisterFileStartOffset

int v8::internal::interpreter::Register::kRegisterFileStartOffset
staticconstexprprivate
Initial value:

Definition at line 124 of file bytecode-register.h.


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