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

#include <translated-state.h>

Collaboration diagram for v8::internal::TranslatedFrame:

Classes

class  iterator
 

Public Types

enum  Kind {
  kUnoptimizedFunction , kInlinedExtraArguments , kConstructCreateStub , kConstructInvokeStub ,
  kBuiltinContinuation , kJavaScriptBuiltinContinuation , kJavaScriptBuiltinContinuationWithCatch , kInvalid
}
 
using reference = TranslatedValue&
 
using const_reference = TranslatedValue const&
 

Public Member Functions

int GetValueCount () const
 
Kind kind () const
 
BytecodeOffset bytecode_offset () const
 
DirectHandle< SharedFunctionInfoshared_info () const
 
DirectHandle< BytecodeArraybytecode_array () const
 
uint32_t height () const
 
int return_value_offset () const
 
int return_value_count () const
 
int formal_parameter_count () const
 
Tagged< SharedFunctionInforaw_shared_info () const
 
Tagged< BytecodeArrayraw_bytecode_array () const
 
iterator begin ()
 
iterator end ()
 
reference front ()
 
const_reference front () const
 

Private Types

enum  HandleState { kRawPointers , kHandles }
 
using ValuesContainer = std::deque<TranslatedValue>
 

Private Member Functions

 TranslatedFrame (Kind kind, Tagged< SharedFunctionInfo > raw_shared_info, Tagged< BytecodeArray > raw_bytecode_array, uint32_t height, int return_value_offset=0, int return_value_count=0)
 
void Add (const TranslatedValue &value)
 
TranslatedValueValueAt (int index)
 
void Handlify (Isolate *isolate)
 

Static Private Member Functions

static TranslatedFrame UnoptimizedJSFrame (BytecodeOffset bytecode_offset, Tagged< SharedFunctionInfo > shared_info, Tagged< BytecodeArray > bytecode_array, uint32_t height, int return_value_offset, int return_value_count)
 
static TranslatedFrame AccessorFrame (Kind kind, Tagged< SharedFunctionInfo > shared_info)
 
static TranslatedFrame InlinedExtraArguments (Tagged< SharedFunctionInfo > shared_info, uint32_t height, uint32_t formal_parameter_count)
 
static TranslatedFrame ConstructCreateStubFrame (Tagged< SharedFunctionInfo > shared_info, uint32_t height)
 
static TranslatedFrame ConstructInvokeStubFrame (Tagged< SharedFunctionInfo > shared_info)
 
static TranslatedFrame BuiltinContinuationFrame (BytecodeOffset bailout_id, Tagged< SharedFunctionInfo > shared_info, uint32_t height)
 
static TranslatedFrame JavaScriptBuiltinContinuationFrame (BytecodeOffset bailout_id, Tagged< SharedFunctionInfo > shared_info, uint32_t height)
 
static TranslatedFrame JavaScriptBuiltinContinuationWithCatchFrame (BytecodeOffset bailout_id, Tagged< SharedFunctionInfo > shared_info, uint32_t height)
 
static TranslatedFrame InvalidFrame ()
 
static void AdvanceIterator (std::deque< TranslatedValue >::iterator *iter)
 

Private Attributes

Kind kind_
 
BytecodeOffset bytecode_offset_ = BytecodeOffset::None()
 
union { 
 
   Tagged< SharedFunctionInfo >   raw_shared_info_ 
 
   IndirectHandle< SharedFunctionInfo >   shared_info_ 
 
};  
 
union { 
 
   Tagged< BytecodeArray >   raw_bytecode_array_ 
 
   IndirectHandle< BytecodeArray >   bytecode_array_ 
 
};  
 
uint32_t height_
 
int return_value_offset_
 
int return_value_count_
 
int formal_parameter_count_ = -1
 
enum v8::internal::TranslatedFrame::HandleState handle_state_
 
ValuesContainer values_
 

Friends

class TranslatedState
 
class Deoptimizer
 

Detailed Description

Definition at line 203 of file translated-state.h.

Member Typedef Documentation

◆ const_reference

◆ reference

◆ ValuesContainer

Definition at line 402 of file translated-state.h.

Member Enumeration Documentation

◆ HandleState

Enumerator
kRawPointers 
kHandles 

Definition at line 400 of file translated-state.h.

◆ Kind

Enumerator
kUnoptimizedFunction 
kInlinedExtraArguments 
kConstructCreateStub 
kConstructInvokeStub 
kBuiltinContinuation 
kJavaScriptBuiltinContinuation 
kJavaScriptBuiltinContinuationWithCatch 
kInvalid 

Definition at line 205 of file translated-state.h.

Constructor & Destructor Documentation

◆ TranslatedFrame()

v8::internal::TranslatedFrame::TranslatedFrame ( Kind kind,
Tagged< SharedFunctionInfo > raw_shared_info,
Tagged< BytecodeArray > raw_bytecode_array,
uint32_t height,
int return_value_offset = 0,
int return_value_count = 0 )
inlineexplicitprivate

Definition at line 364 of file translated-state.h.

Here is the caller graph for this function:

Member Function Documentation

◆ AccessorFrame()

static TranslatedFrame v8::internal::TranslatedFrame::AccessorFrame ( Kind kind,
Tagged< SharedFunctionInfo > shared_info )
staticprivate

◆ Add()

void v8::internal::TranslatedFrame::Add ( const TranslatedValue & value)
inlineprivate

Definition at line 377 of file translated-state.h.

Here is the caller graph for this function:

◆ AdvanceIterator()

void v8::internal::TranslatedFrame::AdvanceIterator ( std::deque< TranslatedValue >::iterator * iter)
staticprivate

Definition at line 1251 of file translated-state.cc.

Here is the caller graph for this function:

◆ begin()

iterator v8::internal::TranslatedFrame::begin ( )
inline

Definition at line 302 of file translated-state.h.

Here is the caller graph for this function:

◆ BuiltinContinuationFrame()

TranslatedFrame v8::internal::TranslatedFrame::BuiltinContinuationFrame ( BytecodeOffset bailout_id,
Tagged< SharedFunctionInfo > shared_info,
uint32_t height )
staticprivate

Definition at line 878 of file translated-state.cc.

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

◆ bytecode_array()

DirectHandle< BytecodeArray > v8::internal::TranslatedFrame::bytecode_array ( ) const
inline

Definition at line 229 of file translated-state.h.

Here is the caller graph for this function:

◆ bytecode_offset()

BytecodeOffset v8::internal::TranslatedFrame::bytecode_offset ( ) const
inline

Definition at line 224 of file translated-state.h.

Here is the caller graph for this function:

◆ ConstructCreateStubFrame()

TranslatedFrame v8::internal::TranslatedFrame::ConstructCreateStubFrame ( Tagged< SharedFunctionInfo > shared_info,
uint32_t height )
staticprivate

Definition at line 868 of file translated-state.cc.

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

◆ ConstructInvokeStubFrame()

TranslatedFrame v8::internal::TranslatedFrame::ConstructInvokeStubFrame ( Tagged< SharedFunctionInfo > shared_info)
staticprivate

Definition at line 873 of file translated-state.cc.

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

◆ end()

iterator v8::internal::TranslatedFrame::end ( )
inline

Definition at line 303 of file translated-state.h.

Here is the caller graph for this function:

◆ formal_parameter_count()

int v8::internal::TranslatedFrame::formal_parameter_count ( ) const
inline

Definition at line 243 of file translated-state.h.

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

◆ front() [1/2]

reference v8::internal::TranslatedFrame::front ( )
inline

Definition at line 305 of file translated-state.h.

◆ front() [2/2]

const_reference v8::internal::TranslatedFrame::front ( ) const
inline

Definition at line 306 of file translated-state.h.

◆ GetValueCount()

int v8::internal::TranslatedFrame::GetValueCount ( ) const

Definition at line 935 of file translated-state.cc.

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

◆ Handlify()

void v8::internal::TranslatedFrame::Handlify ( Isolate * isolate)
private

Definition at line 979 of file translated-state.cc.

Here is the call graph for this function:

◆ height()

uint32_t v8::internal::TranslatedFrame::height ( ) const
inline

Definition at line 239 of file translated-state.h.

Here is the caller graph for this function:

◆ InlinedExtraArguments()

TranslatedFrame v8::internal::TranslatedFrame::InlinedExtraArguments ( Tagged< SharedFunctionInfo > shared_info,
uint32_t height,
uint32_t formal_parameter_count )
staticprivate

Definition at line 860 of file translated-state.cc.

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

◆ InvalidFrame()

static TranslatedFrame v8::internal::TranslatedFrame::InvalidFrame ( )
inlinestaticprivate

Definition at line 358 of file translated-state.h.

Here is the call graph for this function:

◆ JavaScriptBuiltinContinuationFrame()

TranslatedFrame v8::internal::TranslatedFrame::JavaScriptBuiltinContinuationFrame ( BytecodeOffset bailout_id,
Tagged< SharedFunctionInfo > shared_info,
uint32_t height )
staticprivate

Definition at line 917 of file translated-state.cc.

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

◆ JavaScriptBuiltinContinuationWithCatchFrame()

TranslatedFrame v8::internal::TranslatedFrame::JavaScriptBuiltinContinuationWithCatchFrame ( BytecodeOffset bailout_id,
Tagged< SharedFunctionInfo > shared_info,
uint32_t height )
staticprivate

Definition at line 926 of file translated-state.cc.

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

◆ kind()

Kind v8::internal::TranslatedFrame::kind ( ) const
inline

Definition at line 223 of file translated-state.h.

Here is the caller graph for this function:

◆ raw_bytecode_array()

Tagged< BytecodeArray > v8::internal::TranslatedFrame::raw_bytecode_array ( ) const
inline

Definition at line 254 of file translated-state.h.

Here is the caller graph for this function:

◆ raw_shared_info()

Tagged< SharedFunctionInfo > v8::internal::TranslatedFrame::raw_shared_info ( ) const
inline

Definition at line 248 of file translated-state.h.

Here is the caller graph for this function:

◆ return_value_count()

int v8::internal::TranslatedFrame::return_value_count ( ) const
inline

Definition at line 242 of file translated-state.h.

Here is the caller graph for this function:

◆ return_value_offset()

int v8::internal::TranslatedFrame::return_value_offset ( ) const
inline

Definition at line 241 of file translated-state.h.

Here is the caller graph for this function:

◆ shared_info()

DirectHandle< SharedFunctionInfo > v8::internal::TranslatedFrame::shared_info ( ) const
inline

Definition at line 225 of file translated-state.h.

Here is the caller graph for this function:

◆ UnoptimizedJSFrame()

TranslatedFrame v8::internal::TranslatedFrame::UnoptimizedJSFrame ( BytecodeOffset bytecode_offset,
Tagged< SharedFunctionInfo > shared_info,
Tagged< BytecodeArray > bytecode_array,
uint32_t height,
int return_value_offset,
int return_value_count )
staticprivate

Definition at line 850 of file translated-state.cc.

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

◆ ValueAt()

TranslatedValue * v8::internal::TranslatedFrame::ValueAt ( int index)
inlineprivate

Definition at line 378 of file translated-state.h.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ Deoptimizer

friend class Deoptimizer
friend

Definition at line 323 of file translated-state.h.

◆ TranslatedState

friend class TranslatedState
friend

Definition at line 322 of file translated-state.h.

Member Data Documentation

◆ [union]

◆ [union]

◆ bytecode_array_

IndirectHandle<BytecodeArray> v8::internal::TranslatedFrame::bytecode_array_

Definition at line 392 of file translated-state.h.

◆ bytecode_offset_

BytecodeOffset v8::internal::TranslatedFrame::bytecode_offset_ = BytecodeOffset::None()
private

Definition at line 382 of file translated-state.h.

◆ formal_parameter_count_

int v8::internal::TranslatedFrame::formal_parameter_count_ = -1
private

Definition at line 398 of file translated-state.h.

◆ handle_state_

enum v8::internal::TranslatedFrame::HandleState v8::internal::TranslatedFrame::handle_state_
private

◆ height_

uint32_t v8::internal::TranslatedFrame::height_
private

Definition at line 395 of file translated-state.h.

◆ kind_

Kind v8::internal::TranslatedFrame::kind_
private

Definition at line 381 of file translated-state.h.

◆ raw_bytecode_array_

Tagged<BytecodeArray> v8::internal::TranslatedFrame::raw_bytecode_array_

Definition at line 391 of file translated-state.h.

◆ raw_shared_info_

Tagged<SharedFunctionInfo> v8::internal::TranslatedFrame::raw_shared_info_

Definition at line 387 of file translated-state.h.

◆ return_value_count_

int v8::internal::TranslatedFrame::return_value_count_
private

Definition at line 397 of file translated-state.h.

◆ return_value_offset_

int v8::internal::TranslatedFrame::return_value_offset_
private

Definition at line 396 of file translated-state.h.

◆ shared_info_

IndirectHandle<SharedFunctionInfo> v8::internal::TranslatedFrame::shared_info_

Definition at line 388 of file translated-state.h.

◆ values_

ValuesContainer v8::internal::TranslatedFrame::values_
private

Definition at line 404 of file translated-state.h.


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