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

#include <builtins.h>

Collaboration diagram for v8::internal::Builtins:

Public Types

enum  Kind {
  CPP , TSJ , TFJ , TSC ,
  TFC , TFS , TFH , BCH ,
  ASM
}
 
enum class  ForwardWhichFrame { kCurrentFrame , kParentFrame }
 

Public Member Functions

 Builtins (Isolate *isolate)
 
 Builtins (const Builtins &)=delete
 
Builtinsoperator= (const Builtins &)=delete
 
void TearDown ()
 
const char * Lookup (Address pc)
 
void set_code (Builtin builtin, Tagged< Code > code)
 
V8_EXPORT_PRIVATE Tagged< Codecode (Builtin builtin)
 
V8_EXPORT_PRIVATE Handle< Codecode_handle (Builtin builtin)
 
void PrintBuiltinCode ()
 
void PrintBuiltinSize ()
 
bool IsBuiltinHandle (IndirectHandle< HeapObject > maybe_code, Builtin *index) const
 
bool is_initialized () const
 
void MarkInitialized ()
 
int js_entry_handler_offset () const
 
int jspi_prompt_handler_offset () const
 
void SetJSEntryHandlerOffset (int offset)
 
void SetJSPIPromptHandlerOffset (int offset)
 
FullObjectSlot builtin_slot (Builtin builtin)
 
FullObjectSlot builtin_tier0_slot (Builtin builtin)
 

Static Public Member Functions

static constexpr bool IsBuiltinId (Builtin builtin)
 
static constexpr bool IsBuiltinId (int maybe_id)
 
static constexpr bool IsTier0 (Builtin builtin)
 
static constexpr Builtin FromInt (int id)
 
static constexpr int ToInt (Builtin id)
 
static BytecodeOffset GetContinuationBytecodeOffset (Builtin builtin)
 
static Builtin GetBuiltinFromBytecodeOffset (BytecodeOffset)
 
static constexpr Builtin RecordWrite (SaveFPRegsMode fp_mode)
 
static constexpr Builtin IndirectPointerBarrier (SaveFPRegsMode fp_mode)
 
static constexpr Builtin EphemeronKeyBarrier (SaveFPRegsMode fp_mode)
 
static constexpr Builtin AdaptorWithBuiltinExitFrame (int formal_parameter_count)
 
static constexpr Builtin CallFunction (ConvertReceiverMode=ConvertReceiverMode::kAny)
 
static constexpr Builtin Call (ConvertReceiverMode=ConvertReceiverMode::kAny)
 
static constexpr bool IsAnyCall (Builtin builtin)
 
static constexpr Builtin NonPrimitiveToPrimitive (ToPrimitiveHint hint=ToPrimitiveHint::kDefault)
 
static constexpr Builtin OrdinaryToPrimitive (OrdinaryToPrimitiveHint hint)
 
static constexpr Builtin StringAdd (StringAddFlags flags=STRING_ADD_CHECK_NONE)
 
static constexpr Builtin LoadGlobalIC (TypeofMode typeof_mode)
 
static constexpr Builtin LoadGlobalICInOptimizedCode (TypeofMode typeof_mode)
 
static constexpr Builtin CEntry (int result_size, ArgvMode argv_mode, bool builtin_exit_frame=false, bool switch_to_central_stack=false)
 
static constexpr Builtin RuntimeCEntry (int result_size, bool switch_to_central_stack=false)
 
static constexpr Builtin InterpreterCEntry (int result_size)
 
static constexpr Builtin InterpreterPushArgsThenCall (ConvertReceiverMode receiver_mode, InterpreterPushArgsMode mode)
 
static constexpr Builtin InterpreterPushArgsThenConstruct (InterpreterPushArgsMode mode)
 
static CallInterfaceDescriptor CallInterfaceDescriptorFor (Builtin builtin)
 
static V8_EXPORT_PRIVATE Callable CallableFor (Isolate *isolate, Builtin builtin)
 
static V8_EXPORT_PRIVATE bool HasJSLinkage (Builtin builtin)
 
static V8_EXPORT_PRIVATE int GetStackParameterCount (Builtin builtin)
 
static int GetFormalParameterCount (Builtin builtin)
 
static bool CheckFormalParameterCount (Builtin builtin, int function_length, int formal_parameter_count_with_receiver)
 
static V8_EXPORT_PRIVATE const char * name (Builtin builtin)
 
static V8_EXPORT_PRIVATE const char * NameForStackTrace (Isolate *isolate, Builtin builtin)
 
static Address CppEntryOf (Builtin builtin)
 
static Address EntryOf (Builtin builtin, Isolate *isolate)
 
static V8_EXPORT_PRIVATE Kind KindOf (Builtin builtin)
 
static const char * KindNameOf (Builtin builtin)
 
static V8_EXPORT_PRIVATE CodeEntrypointTag EntrypointTagFor (Builtin builtin)
 
static V8_EXPORT_PRIVATE bool IsCpp (Builtin builtin)
 
static bool IsBuiltin (const Tagged< Code > code)
 
static constexpr bool AllBuiltinsAreIsolateIndependent ()
 
static constexpr bool IsIsolateIndependent (Builtin builtin)
 
static bool IsIsolateIndependentBuiltin (Tagged< Code > code)
 
static void InitializeIsolateDataTables (Isolate *isolate)
 
static void EmitCodeCreateEvents (Isolate *isolate)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< ObjectInvokeApiFunction (Isolate *isolate, bool is_construct, DirectHandle< FunctionTemplateInfo > function, DirectHandle< Object > receiver, base::Vector< const DirectHandle< Object > > args, DirectHandle< HeapObject > new_target)
 
static void Generate_Adaptor (MacroAssembler *masm, int formal_parameter_count, Address builtin_address)
 
static void Generate_CEntry (MacroAssembler *masm, int result_size, ArgvMode argv_mode, bool builtin_exit_frame, bool switch_to_central_stack)
 
static bool AllowDynamicFunction (Isolate *isolate, DirectHandle< JSFunction > target, DirectHandle< JSObject > target_global_proxy)
 
static DirectHandle< CodeCreateInterpreterEntryTrampolineForProfiling (Isolate *isolate)
 
static constexpr bool IsJSEntryVariant (Builtin builtin)
 

Static Public Attributes

static constexpr bool kCodeObjectsAreInROSpace = true
 
static constexpr int kBuiltinCount
 
static constexpr int kBuiltinTier0Count
 
static constexpr Builtin kFirst = static_cast<Builtin>(0)
 
static constexpr Builtin kLast = static_cast<Builtin>(kBuiltinCount - 1)
 
static constexpr Builtin kLastTier0
 
static constexpr int kFirstWideBytecodeHandler
 
static constexpr int kFirstExtraWideBytecodeHandler
 
static constexpr int kLastBytecodeHandlerPlusOne
 
static constexpr bool kBytecodeHandlersAreSortedLast
 
static constexpr bool kAllBuiltinsAreIsolateIndependent = true
 

Private Types

enum class  CallOrConstructMode { kCall , kConstruct }
 
enum class  InterpreterEntryTrampolineMode { kDefault , kForProfiling }
 

Private Member Functions

 BUILTIN_LIST (IGNORE_BUILTIN, DECLARE_TS, DECLARE_TF, DECLARE_TS, DECLARE_TF, DECLARE_TF, DECLARE_TF, IGNORE_BUILTIN, DECLARE_ASM) Isolate *isolate_
 

Static Private Member Functions

static void Generate_CallFunction (MacroAssembler *masm, ConvertReceiverMode mode)
 
static void Generate_CallBoundFunctionImpl (MacroAssembler *masm)
 
static void Generate_Call (MacroAssembler *masm, ConvertReceiverMode mode)
 
static void Generate_CallOrConstructVarargs (MacroAssembler *masm, Builtin target_builtin)
 
static void Generate_CallOrConstructForwardVarargs (MacroAssembler *masm, CallOrConstructMode mode, Builtin target_builtin)
 
static void Generate_MaglevFunctionEntryStackCheck (MacroAssembler *masm, bool save_new_target)
 
static void Generate_InterpreterEntryTrampoline (MacroAssembler *masm, InterpreterEntryTrampolineMode mode)
 
static void Generate_InterpreterPushArgsThenCallImpl (MacroAssembler *masm, ConvertReceiverMode receiver_mode, InterpreterPushArgsMode mode)
 
static void Generate_InterpreterPushArgsThenConstructImpl (MacroAssembler *masm, InterpreterPushArgsMode mode)
 
static void Generate_ConstructForwardAllArgsImpl (MacroAssembler *masm, ForwardWhichFrame which_frame)
 
static void Generate_CallApiCallbackImpl (MacroAssembler *masm, CallApiCallbackMode mode)
 

Private Attributes

bool initialized_ = false
 
int js_entry_handler_offset_ = 0
 
int jspi_prompt_handler_offset_ = 0
 

Friends

class SetupIsolateDelegate
 

Detailed Description

Definition at line 85 of file builtins.h.

Member Enumeration Documentation

◆ CallOrConstructMode

Enumerator
kCall 
kConstruct 

Definition at line 368 of file builtins.h.

◆ ForwardWhichFrame

Enumerator
kCurrentFrame 
kParentFrame 

Definition at line 356 of file builtins.h.

◆ InterpreterEntryTrampolineMode

Enumerator
kDefault 
kForProfiling 

Definition at line 376 of file builtins.h.

◆ Kind

Enumerator
CPP 
TSJ 
TFJ 
TSC 
TFC 
TFS 
TFH 
BCH 
ASM 

Definition at line 150 of file builtins.h.

Constructor & Destructor Documentation

◆ Builtins() [1/2]

v8::internal::Builtins::Builtins ( Isolate * isolate)
inlineexplicit

Definition at line 87 of file builtins.h.

◆ Builtins() [2/2]

v8::internal::Builtins::Builtins ( const Builtins & )
delete

Member Function Documentation

◆ AdaptorWithBuiltinExitFrame()

Builtin v8::internal::Builtins::AdaptorWithBuiltinExitFrame ( int formal_parameter_count)
inlinestaticconstexpr

Definition at line 47 of file builtins-inl.h.

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

◆ AllBuiltinsAreIsolateIndependent()

static constexpr bool v8::internal::Builtins::AllBuiltinsAreIsolateIndependent ( )
inlinestaticconstexpr

Definition at line 263 of file builtins.h.

Here is the caller graph for this function:

◆ AllowDynamicFunction()

bool v8::internal::Builtins::AllowDynamicFunction ( Isolate * isolate,
DirectHandle< JSFunction > target,
DirectHandle< JSObject > target_global_proxy )
static

Definition at line 534 of file builtins.cc.

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

◆ BUILTIN_LIST()

v8::internal::Builtins::BUILTIN_LIST ( IGNORE_BUILTIN ,
DECLARE_TS ,
DECLARE_TF ,
DECLARE_TS ,
DECLARE_TF ,
DECLARE_TF ,
DECLARE_TF ,
IGNORE_BUILTIN ,
DECLARE_ASM  )
private

◆ builtin_slot()

FullObjectSlot v8::internal::Builtins::builtin_slot ( Builtin builtin)

Definition at line 130 of file builtins.cc.

Here is the call graph for this function:

◆ builtin_tier0_slot()

FullObjectSlot v8::internal::Builtins::builtin_tier0_slot ( Builtin builtin)

Definition at line 135 of file builtins.cc.

Here is the call graph for this function:

◆ Call()

Builtin v8::internal::Builtins::Call ( ConvertReceiverMode mode = ConvertReceiverMode::kAny)
inlinestaticconstexpr

Definition at line 81 of file builtins-inl.h.

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

◆ CallableFor()

Callable v8::internal::Builtins::CallableFor ( Isolate * isolate,
Builtin builtin )
static

Definition at line 214 of file builtins.cc.

Here is the call graph for this function:

◆ CallFunction()

Builtin v8::internal::Builtins::CallFunction ( ConvertReceiverMode mode = ConvertReceiverMode::kAny)
inlinestaticconstexpr

Definition at line 68 of file builtins-inl.h.

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

◆ CallInterfaceDescriptorFor()

CallInterfaceDescriptor v8::internal::Builtins::CallInterfaceDescriptorFor ( Builtin builtin)
static

Definition at line 189 of file builtins.cc.

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

◆ CEntry()

Builtin v8::internal::Builtins::CEntry ( int result_size,
ArgvMode argv_mode,
bool builtin_exit_frame = false,
bool switch_to_central_stack = false )
inlinestaticconstexpr

Definition at line 161 of file builtins-inl.h.

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

◆ CheckFormalParameterCount()

bool v8::internal::Builtins::CheckFormalParameterCount ( Builtin builtin,
int function_length,
int formal_parameter_count_with_receiver )
static

Definition at line 166 of file builtins.cc.

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

◆ code()

Tagged< Code > v8::internal::Builtins::code ( Builtin builtin)

Definition at line 149 of file builtins.cc.

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

◆ code_handle()

Handle< Code > v8::internal::Builtins::code_handle ( Builtin builtin)

Definition at line 154 of file builtins.cc.

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

◆ CppEntryOf()

Address v8::internal::Builtins::CppEntryOf ( Builtin builtin)
static

Definition at line 350 of file builtins.cc.

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

◆ CreateInterpreterEntryTrampolineForProfiling()

DirectHandle< Code > v8::internal::Builtins::CreateInterpreterEntryTrampolineForProfiling ( Isolate * isolate)
static

Definition at line 430 of file builtins.cc.

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

◆ EmitCodeCreateEvents()

void v8::internal::Builtins::EmitCodeCreateEvents ( Isolate * isolate)
static

Definition at line 401 of file builtins.cc.

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

◆ EntryOf()

Address v8::internal::Builtins::EntryOf ( Builtin builtin,
Isolate * isolate )
inlinestatic

Definition at line 241 of file builtins-inl.h.

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

◆ EntrypointTagFor()

CodeEntrypointTag v8::internal::Builtins::EntrypointTagFor ( Builtin builtin)
static

Definition at line 501 of file builtins.cc.

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

◆ EphemeronKeyBarrier()

Builtin v8::internal::Builtins::EphemeronKeyBarrier ( SaveFPRegsMode fp_mode)
inlinestaticconstexpr

Definition at line 37 of file builtins-inl.h.

Here is the caller graph for this function:

◆ FromInt()

static constexpr Builtin v8::internal::Builtins::FromInt ( int id)
inlinestaticconstexpr

Definition at line 140 of file builtins.h.

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

◆ Generate_Adaptor()

void v8::internal::Builtins::Generate_Adaptor ( MacroAssembler * masm,
int formal_parameter_count,
Address builtin_address )
static

Definition at line 39 of file builtins-riscv.cc.

Here is the call graph for this function:

◆ Generate_Call()

void v8::internal::Builtins::Generate_Call ( MacroAssembler * masm,
ConvertReceiverMode mode )
staticprivate

Definition at line 2785 of file builtins-riscv.cc.

Here is the call graph for this function:

◆ Generate_CallApiCallbackImpl()

void v8::internal::Builtins::Generate_CallApiCallbackImpl ( MacroAssembler * masm,
CallApiCallbackMode mode )
staticprivate

Definition at line 4597 of file builtins-riscv.cc.

Here is the call graph for this function:

◆ Generate_CallBoundFunctionImpl()

void v8::internal::Builtins::Generate_CallBoundFunctionImpl ( MacroAssembler * masm)
staticprivate

Definition at line 2759 of file builtins-riscv.cc.

Here is the call graph for this function:

◆ Generate_CallFunction()

void v8::internal::Builtins::Generate_CallFunction ( MacroAssembler * masm,
ConvertReceiverMode mode )
staticprivate

Definition at line 2597 of file builtins-riscv.cc.

Here is the call graph for this function:

◆ Generate_CallOrConstructForwardVarargs()

void v8::internal::Builtins::Generate_CallOrConstructForwardVarargs ( MacroAssembler * masm,
CallOrConstructMode mode,
Builtin target_builtin )
staticprivate

Definition at line 2511 of file builtins-riscv.cc.

Here is the call graph for this function:

◆ Generate_CallOrConstructVarargs()

void v8::internal::Builtins::Generate_CallOrConstructVarargs ( MacroAssembler * masm,
Builtin target_builtin )
staticprivate

Definition at line 2427 of file builtins-riscv.cc.

Here is the call graph for this function:

◆ Generate_CEntry()

void v8::internal::Builtins::Generate_CEntry ( MacroAssembler * masm,
int result_size,
ArgvMode argv_mode,
bool builtin_exit_frame,
bool switch_to_central_stack )
static

Definition at line 3223 of file builtins-riscv.cc.

Here is the call graph for this function:

◆ Generate_ConstructForwardAllArgsImpl()

void v8::internal::Builtins::Generate_ConstructForwardAllArgsImpl ( MacroAssembler * masm,
ForwardWhichFrame which_frame )
staticprivate

Definition at line 1540 of file builtins-riscv.cc.

◆ Generate_InterpreterEntryTrampoline()

void v8::internal::Builtins::Generate_InterpreterEntryTrampoline ( MacroAssembler * masm,
InterpreterEntryTrampolineMode mode )
staticprivate

Definition at line 12 of file builtins-interpreter-gen.cc.

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

◆ Generate_InterpreterPushArgsThenCallImpl()

void v8::internal::Builtins::Generate_InterpreterPushArgsThenCallImpl ( MacroAssembler * masm,
ConvertReceiverMode receiver_mode,
InterpreterPushArgsMode mode )
staticprivate

Definition at line 1430 of file builtins-riscv.cc.

Here is the call graph for this function:

◆ Generate_InterpreterPushArgsThenConstructImpl()

void v8::internal::Builtins::Generate_InterpreterPushArgsThenConstructImpl ( MacroAssembler * masm,
InterpreterPushArgsMode mode )
staticprivate

Definition at line 1483 of file builtins-riscv.cc.

Here is the call graph for this function:

◆ Generate_MaglevFunctionEntryStackCheck()

void v8::internal::Builtins::Generate_MaglevFunctionEntryStackCheck ( MacroAssembler * masm,
bool save_new_target )
staticprivate

Definition at line 1472 of file builtins-internal-gen.cc.

Here is the call graph for this function:

◆ GetBuiltinFromBytecodeOffset()

Builtin v8::internal::Builtins::GetBuiltinFromBytecodeOffset ( BytecodeOffset id)
static

Definition at line 104 of file builtins.cc.

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

◆ GetContinuationBytecodeOffset()

BytecodeOffset v8::internal::Builtins::GetContinuationBytecodeOffset ( Builtin builtin)
static

Definition at line 97 of file builtins.cc.

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

◆ GetFormalParameterCount()

int v8::internal::Builtins::GetFormalParameterCount ( Builtin builtin)
inlinestatic

Definition at line 259 of file builtins-inl.h.

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

◆ GetStackParameterCount()

int v8::internal::Builtins::GetStackParameterCount ( Builtin builtin)
static

Definition at line 160 of file builtins.cc.

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

◆ HasJSLinkage()

bool v8::internal::Builtins::HasJSLinkage ( Builtin builtin)
static

Definition at line 220 of file builtins.cc.

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

◆ IndirectPointerBarrier()

Builtin v8::internal::Builtins::IndirectPointerBarrier ( SaveFPRegsMode fp_mode)
inlinestaticconstexpr

Definition at line 27 of file builtins-inl.h.

Here is the caller graph for this function:

◆ InitializeIsolateDataTables()

void v8::internal::Builtins::InitializeIsolateDataTables ( Isolate * isolate)
static

Definition at line 379 of file builtins.cc.

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

◆ InterpreterCEntry()

Builtin v8::internal::Builtins::InterpreterCEntry ( int result_size)
inlinestaticconstexpr

Definition at line 200 of file builtins-inl.h.

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

◆ InterpreterPushArgsThenCall()

Builtin v8::internal::Builtins::InterpreterPushArgsThenCall ( ConvertReceiverMode receiver_mode,
InterpreterPushArgsMode mode )
inlinestaticconstexpr

Definition at line 205 of file builtins-inl.h.

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

◆ InterpreterPushArgsThenConstruct()

Builtin v8::internal::Builtins::InterpreterPushArgsThenConstruct ( InterpreterPushArgsMode mode)
inlinestaticconstexpr

Definition at line 227 of file builtins-inl.h.

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

◆ InvokeApiFunction()

MaybeHandle< Object > v8::internal::Builtins::InvokeApiFunction ( Isolate * isolate,
bool is_construct,
DirectHandle< FunctionTemplateInfo > function,
DirectHandle< Object > receiver,
base::Vector< const DirectHandle< Object > > args,
DirectHandle< HeapObject > new_target )
static

Definition at line 165 of file builtins-api.cc.

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

◆ is_initialized()

bool v8::internal::Builtins::is_initialized ( ) const
inline

Definition at line 279 of file builtins.h.

Here is the caller graph for this function:

◆ IsAnyCall()

bool v8::internal::Builtins::IsAnyCall ( Builtin builtin)
inlinestaticconstexpr

Definition at line 94 of file builtins-inl.h.

◆ IsBuiltin()

bool v8::internal::Builtins::IsBuiltin ( const Tagged< Code > code)
static

Definition at line 356 of file builtins.cc.

Here is the call graph for this function:

◆ IsBuiltinHandle()

bool v8::internal::Builtins::IsBuiltinHandle ( IndirectHandle< HeapObject > maybe_code,
Builtin * index ) const

Definition at line 360 of file builtins.cc.

Here is the call graph for this function:

◆ IsBuiltinId() [1/2]

static constexpr bool v8::internal::Builtins::IsBuiltinId ( Builtin builtin)
inlinestaticconstexpr

Definition at line 128 of file builtins.h.

Here is the caller graph for this function:

◆ IsBuiltinId() [2/2]

static constexpr bool v8::internal::Builtins::IsBuiltinId ( int maybe_id)
inlinestaticconstexpr

Definition at line 131 of file builtins.h.

◆ IsCpp()

bool v8::internal::Builtins::IsCpp ( Builtin builtin)
static

Definition at line 496 of file builtins.cc.

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

◆ IsIsolateIndependent()

static constexpr bool v8::internal::Builtins::IsIsolateIndependent ( Builtin builtin)
inlinestaticconstexpr

Definition at line 266 of file builtins.h.

Here is the caller graph for this function:

◆ IsIsolateIndependentBuiltin()

bool v8::internal::Builtins::IsIsolateIndependentBuiltin ( Tagged< Code > code)
static

Definition at line 372 of file builtins.cc.

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

◆ IsJSEntryVariant()

bool v8::internal::Builtins::IsJSEntryVariant ( Builtin builtin)
inlinestaticconstexpr

Definition at line 246 of file builtins-inl.h.

Here is the call graph for this function:

◆ IsTier0()

static constexpr bool v8::internal::Builtins::IsTier0 ( Builtin builtin)
inlinestaticconstexpr

Definition at line 136 of file builtins.h.

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

◆ js_entry_handler_offset()

int v8::internal::Builtins::js_entry_handler_offset ( ) const
inline

Definition at line 311 of file builtins.h.

◆ jspi_prompt_handler_offset()

int v8::internal::Builtins::jspi_prompt_handler_offset ( ) const
inline

Definition at line 316 of file builtins.h.

◆ KindNameOf()

const char * v8::internal::Builtins::KindNameOf ( Builtin builtin)
static

Definition at line 477 of file builtins.cc.

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

◆ KindOf()

Builtins::Kind v8::internal::Builtins::KindOf ( Builtin builtin)
static

Definition at line 471 of file builtins.cc.

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

◆ LoadGlobalIC()

Builtin v8::internal::Builtins::LoadGlobalIC ( TypeofMode typeof_mode)
inlinestaticconstexpr

Definition at line 146 of file builtins-inl.h.

Here is the caller graph for this function:

◆ LoadGlobalICInOptimizedCode()

Builtin v8::internal::Builtins::LoadGlobalICInOptimizedCode ( TypeofMode typeof_mode)
inlinestaticconstexpr

Definition at line 153 of file builtins-inl.h.

Here is the caller graph for this function:

◆ Lookup()

const char * v8::internal::Builtins::Lookup ( Address pc)

Definition at line 114 of file builtins.cc.

Here is the call graph for this function:

◆ MarkInitialized()

void v8::internal::Builtins::MarkInitialized ( )
inline

Definition at line 282 of file builtins.h.

Here is the caller graph for this function:

◆ name()

const char * v8::internal::Builtins::name ( Builtin builtin)
static

Definition at line 226 of file builtins.cc.

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

◆ NameForStackTrace()

const char * v8::internal::Builtins::NameForStackTrace ( Isolate * isolate,
Builtin builtin )
static

Definition at line 233 of file builtins.cc.

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

◆ NonPrimitiveToPrimitive()

Builtin v8::internal::Builtins::NonPrimitiveToPrimitive ( ToPrimitiveHint hint = ToPrimitiveHint::kDefault)
inlinestaticconstexpr

Definition at line 109 of file builtins-inl.h.

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

◆ operator=()

Builtins & v8::internal::Builtins::operator= ( const Builtins & )
delete

◆ OrdinaryToPrimitive()

Builtin v8::internal::Builtins::OrdinaryToPrimitive ( OrdinaryToPrimitiveHint hint)
inlinestaticconstexpr

Definition at line 122 of file builtins-inl.h.

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

◆ PrintBuiltinCode()

void v8::internal::Builtins::PrintBuiltinCode ( )

Definition at line 319 of file builtins.cc.

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

◆ PrintBuiltinSize()

void v8::internal::Builtins::PrintBuiltinSize ( )

Definition at line 337 of file builtins.cc.

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

◆ RecordWrite()

Builtin v8::internal::Builtins::RecordWrite ( SaveFPRegsMode fp_mode)
inlinestaticconstexpr

Definition at line 17 of file builtins-inl.h.

Here is the caller graph for this function:

◆ RuntimeCEntry()

Builtin v8::internal::Builtins::RuntimeCEntry ( int result_size,
bool switch_to_central_stack = false )
inlinestaticconstexpr

Definition at line 194 of file builtins-inl.h.

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

◆ set_code()

void v8::internal::Builtins::set_code ( Builtin builtin,
Tagged< Code > code )

Definition at line 142 of file builtins.cc.

Here is the call graph for this function:

◆ SetJSEntryHandlerOffset()

void v8::internal::Builtins::SetJSEntryHandlerOffset ( int offset)
inline

Definition at line 321 of file builtins.h.

◆ SetJSPIPromptHandlerOffset()

void v8::internal::Builtins::SetJSPIPromptHandlerOffset ( int offset)
inline

Definition at line 329 of file builtins.h.

◆ StringAdd()

Builtin v8::internal::Builtins::StringAdd ( StringAddFlags flags = STRING_ADD_CHECK_NONE)
inlinestaticconstexpr

Definition at line 133 of file builtins-inl.h.

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

◆ TearDown()

void v8::internal::Builtins::TearDown ( )

Definition at line 112 of file builtins.cc.

Here is the caller graph for this function:

◆ ToInt()

static constexpr int v8::internal::Builtins::ToInt ( Builtin id)
inlinestaticconstexpr

Definition at line 144 of file builtins.h.

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

Friends And Related Symbol Documentation

◆ SetupIsolateDelegate

friend class SetupIsolateDelegate
friend

Definition at line 435 of file builtins.h.

Member Data Documentation

◆ initialized_

bool v8::internal::Builtins::initialized_ = false
private

Definition at line 417 of file builtins.h.

◆ js_entry_handler_offset_

int v8::internal::Builtins::js_entry_handler_offset_ = 0
private

Definition at line 422 of file builtins.h.

◆ jspi_prompt_handler_offset_

int v8::internal::Builtins::jspi_prompt_handler_offset_ = 0
private

Definition at line 433 of file builtins.h.

◆ kAllBuiltinsAreIsolateIndependent

bool v8::internal::Builtins::kAllBuiltinsAreIsolateIndependent = true
staticconstexpr

Definition at line 262 of file builtins.h.

◆ kBuiltinCount

int v8::internal::Builtins::kBuiltinCount
staticconstexpr
Initial value:

Definition at line 105 of file builtins.h.

◆ kBuiltinTier0Count

int v8::internal::Builtins::kBuiltinTier0Count
staticconstexpr
Initial value:
#define BUILTIN_LIST_TIER0(CPP, TFJ, TFC, TFS, TFH, BCH, ASM)

Definition at line 108 of file builtins.h.

◆ kBytecodeHandlersAreSortedLast

bool v8::internal::Builtins::kBytecodeHandlersAreSortedLast
staticconstexpr
Initial value:
=
static constexpr int kBuiltinCount
Definition builtins.h:105
static constexpr int kLastBytecodeHandlerPlusOne
Definition builtins.h:122

Definition at line 124 of file builtins.h.

◆ kCodeObjectsAreInROSpace

bool v8::internal::Builtins::kCodeObjectsAreInROSpace = true
staticconstexpr

Definition at line 98 of file builtins.h.

◆ kFirst

Builtin v8::internal::Builtins::kFirst = static_cast<Builtin>(0)
staticconstexpr

Definition at line 112 of file builtins.h.

◆ kFirstExtraWideBytecodeHandler

int v8::internal::Builtins::kFirstExtraWideBytecodeHandler
staticconstexpr
Initial value:
=
kFirstWideBytecodeHandler + kNumberOfWideBytecodeHandlers
static constexpr int kFirstWideBytecodeHandler
Definition builtins.h:117

Definition at line 120 of file builtins.h.

◆ kFirstWideBytecodeHandler

int v8::internal::Builtins::kFirstWideBytecodeHandler
staticconstexpr
Initial value:
=
static_cast<int>(Builtin::kFirstBytecodeHandler) +
kNumberOfBytecodeHandlers

Definition at line 117 of file builtins.h.

◆ kLast

Builtin v8::internal::Builtins::kLast = static_cast<Builtin>(kBuiltinCount - 1)
staticconstexpr

Definition at line 113 of file builtins.h.

◆ kLastBytecodeHandlerPlusOne

int v8::internal::Builtins::kLastBytecodeHandlerPlusOne
staticconstexpr
Initial value:
=
kFirstExtraWideBytecodeHandler + kNumberOfWideBytecodeHandlers
static constexpr int kFirstExtraWideBytecodeHandler
Definition builtins.h:120

Definition at line 122 of file builtins.h.

◆ kLastTier0

Builtin v8::internal::Builtins::kLastTier0
staticconstexpr
Initial value:
=
static_cast<Builtin>(kBuiltinTier0Count - 1)
static constexpr int kBuiltinTier0Count
Definition builtins.h:108

Definition at line 114 of file builtins.h.


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