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

#include <bytecode-array-random-iterator.h>

Inheritance diagram for v8::internal::interpreter::BytecodeArrayRandomIterator:
Collaboration diagram for v8::internal::interpreter::BytecodeArrayRandomIterator:

Public Member Functions

 BytecodeArrayRandomIterator (Handle< BytecodeArray > bytecode_array, Zone *zone)
 
 BytecodeArrayRandomIterator (const BytecodeArrayRandomIterator &)=delete
 
BytecodeArrayRandomIteratoroperator= (const BytecodeArrayRandomIterator &)=delete
 
BytecodeArrayRandomIteratoroperator++ ()
 
BytecodeArrayRandomIteratoroperator-- ()
 
BytecodeArrayRandomIteratoroperator+= (int offset)
 
BytecodeArrayRandomIteratoroperator-= (int offset)
 
int current_index () const
 
int size () const
 
void GoToIndex (int index)
 
void GoToStart ()
 
void GoToEnd ()
 
bool IsValid () const
 
- Public Member Functions inherited from v8::internal::interpreter::BytecodeArrayIterator
 BytecodeArrayIterator (Handle< BytecodeArray > bytecode_array, int initial_offset=0)
 
 BytecodeArrayIterator (Handle< BytecodeArray > bytecode_array, int initial_offset, DisallowGarbageCollection &no_gc)
 
 ~BytecodeArrayIterator ()
 
 BytecodeArrayIterator (const BytecodeArrayIterator &)=delete
 
BytecodeArrayIteratoroperator= (const BytecodeArrayIterator &)=delete
 
void Advance ()
 
void AdvanceTo (int offset)
 
void SetOffset (int offset)
 
void Reset ()
 
bool CurrentBytecodeIsValidOSREntry () const
 
void ApplyDebugBreak ()
 
Bytecode current_bytecode () const
 
int current_bytecode_size () const
 
int current_bytecode_size_without_prefix () const
 
int current_offset () const
 
uint8_t * current_address () const
 
int next_offset () const
 
Bytecode next_bytecode () const
 
OperandScale current_operand_scale () const
 
DirectHandle< BytecodeArraybytecode_array () const
 
uint32_t GetFlag8Operand (int operand_index) const
 
uint32_t GetFlag16Operand (int operand_index) const
 
uint32_t GetUnsignedImmediateOperand (int operand_index) const
 
int32_t GetImmediateOperand (int operand_index) const
 
uint32_t GetIndexOperand (int operand_index) const
 
FeedbackSlot GetSlotOperand (int operand_index) const
 
Register GetParameter (int parameter_index) const
 
uint32_t GetRegisterCountOperand (int operand_index) const
 
Register GetRegisterOperand (int operand_index) const
 
Register GetStarTargetRegister () const
 
std::pair< Register, RegisterGetRegisterPairOperand (int operand_index) const
 
RegisterList GetRegisterListOperand (int operand_index) const
 
int GetRegisterOperandRange (int operand_index) const
 
Runtime::FunctionId GetRuntimeIdOperand (int operand_index) const
 
Runtime::FunctionId GetIntrinsicIdOperand (int operand_index) const
 
uint32_t GetNativeContextIndexOperand (int operand_index) const
 
template<typename IsolateT >
Handle< ObjectGetConstantAtIndex (int offset, IsolateT *isolate) const
 
bool IsConstantAtIndexSmi (int offset) const
 
Tagged< SmiGetConstantAtIndexAsSmi (int offset) const
 
template<typename IsolateT >
Handle< ObjectGetConstantForIndexOperand (int operand_index, IsolateT *isolate) const
 
int GetRelativeJumpTargetOffset () const
 
int GetJumpTargetOffset () const
 
JumpTableTargetOffsets GetJumpTableTargetOffsets () const
 
int GetAbsoluteOffset (int relative_offset) const
 
std::ostream & PrintTo (std::ostream &os) const
 
void UpdatePointers ()
 
bool done () const
 
bool operator== (const BytecodeArrayIterator &other) const
 
bool operator!= (const BytecodeArrayIterator &other) const
 

Private Member Functions

void Initialize ()
 
void UpdateOffsetFromIndex ()
 

Private Attributes

ZoneVector< int > offsets_
 
int current_index_
 

Additional Inherited Members

- Static Public Member Functions inherited from v8::internal::interpreter::BytecodeArrayIterator
static bool IsValidOffset (Handle< BytecodeArray > bytecode_array, int offset)
 
static bool IsValidOSREntryOffset (Handle< BytecodeArray > bytecode_array, int offset)
 
static void UpdatePointersCallback (void *iterator)
 
- Protected Member Functions inherited from v8::internal::interpreter::BytecodeArrayIterator
void SetOffsetUnchecked (int offset)
 

Detailed Description

Definition at line 18 of file bytecode-array-random-iterator.h.

Constructor & Destructor Documentation

◆ BytecodeArrayRandomIterator() [1/2]

v8::internal::interpreter::BytecodeArrayRandomIterator::BytecodeArrayRandomIterator ( Handle< BytecodeArray > bytecode_array,
Zone * zone )

Definition at line 13 of file bytecode-array-random-iterator.cc.

Here is the call graph for this function:

◆ BytecodeArrayRandomIterator() [2/2]

v8::internal::interpreter::BytecodeArrayRandomIterator::BytecodeArrayRandomIterator ( const BytecodeArrayRandomIterator & )
delete

Member Function Documentation

◆ current_index()

int v8::internal::interpreter::BytecodeArrayRandomIterator::current_index ( ) const
inline

Definition at line 50 of file bytecode-array-random-iterator.h.

Here is the caller graph for this function:

◆ GoToEnd()

void v8::internal::interpreter::BytecodeArrayRandomIterator::GoToEnd ( )
inline

Definition at line 62 of file bytecode-array-random-iterator.h.

Here is the caller graph for this function:

◆ GoToIndex()

void v8::internal::interpreter::BytecodeArrayRandomIterator::GoToIndex ( int index)
inline

Definition at line 54 of file bytecode-array-random-iterator.h.

Here is the caller graph for this function:

◆ GoToStart()

void v8::internal::interpreter::BytecodeArrayRandomIterator::GoToStart ( )
inline

Definition at line 58 of file bytecode-array-random-iterator.h.

Here is the caller graph for this function:

◆ Initialize()

void v8::internal::interpreter::BytecodeArrayRandomIterator::Initialize ( )
private

Definition at line 20 of file bytecode-array-random-iterator.cc.

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

◆ IsValid()

bool v8::internal::interpreter::BytecodeArrayRandomIterator::IsValid ( ) const

Definition at line 30 of file bytecode-array-random-iterator.cc.

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

◆ operator++()

BytecodeArrayRandomIterator & v8::internal::interpreter::BytecodeArrayRandomIterator::operator++ ( )
inline

Definition at line 27 of file bytecode-array-random-iterator.h.

◆ operator+=()

BytecodeArrayRandomIterator & v8::internal::interpreter::BytecodeArrayRandomIterator::operator+= ( int offset)
inline

Definition at line 38 of file bytecode-array-random-iterator.h.

◆ operator--()

BytecodeArrayRandomIterator & v8::internal::interpreter::BytecodeArrayRandomIterator::operator-- ( )
inline

Definition at line 32 of file bytecode-array-random-iterator.h.

◆ operator-=()

BytecodeArrayRandomIterator & v8::internal::interpreter::BytecodeArrayRandomIterator::operator-= ( int offset)
inline

Definition at line 44 of file bytecode-array-random-iterator.h.

◆ operator=()

BytecodeArrayRandomIterator & v8::internal::interpreter::BytecodeArrayRandomIterator::operator= ( const BytecodeArrayRandomIterator & )
delete

◆ size()

int v8::internal::interpreter::BytecodeArrayRandomIterator::size ( ) const
inline

Definition at line 52 of file bytecode-array-random-iterator.h.

Here is the caller graph for this function:

◆ UpdateOffsetFromIndex()

void v8::internal::interpreter::BytecodeArrayRandomIterator::UpdateOffsetFromIndex ( )
private

Definition at line 35 of file bytecode-array-random-iterator.cc.

Here is the call graph for this function:

Member Data Documentation

◆ current_index_

int v8::internal::interpreter::BytecodeArrayRandomIterator::current_index_
private

Definition at line 71 of file bytecode-array-random-iterator.h.

◆ offsets_

ZoneVector<int> v8::internal::interpreter::BytecodeArrayRandomIterator::offsets_
private

Definition at line 70 of file bytecode-array-random-iterator.h.


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