V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::Builtins Class Reference

Public Types

enum  Name : int32_t { BUILTIN_LIST, kFirstBytecodeHandler }
 
enum  Kind {
  CPP, API, TFJ, TFC,
  TFS, TFH, BCH, ASM
}
 
enum  ExitFrameType { EXIT, BUILTIN_EXIT }
 

Public Member Functions

 Builtins (Isolate *isolate)
 
void TearDown ()
 
const charLookup (Address pc)
 
Handle< CodeCallFunction (ConvertReceiverMode=ConvertReceiverMode::kAny)
 
Handle< CodeCall (ConvertReceiverMode=ConvertReceiverMode::kAny)
 
Handle< CodeNonPrimitiveToPrimitive (ToPrimitiveHint hint=ToPrimitiveHint::kDefault)
 
Handle< CodeOrdinaryToPrimitive (OrdinaryToPrimitiveHint hint)
 
Handle< CodeInterpreterPushArgsThenCall (ConvertReceiverMode receiver_mode, InterpreterPushArgsMode mode)
 
Handle< CodeInterpreterPushArgsThenConstruct (InterpreterPushArgsMode mode)
 
Handle< CodeNewFunctionContext (ScopeType scope_type)
 
Handle< CodeJSConstructStubGeneric ()
 
void set_builtin (int index, Code builtin)
 
Code builtin (int index)
 
V8_EXPORT_PRIVATE Handle< Codebuiltin_handle (int index)
 
void PrintBuiltinCode ()
 
void PrintBuiltinSize ()
 
bool IsBuiltinHandle (Handle< HeapObject > maybe_code, int *index) const
 
 STATIC_ASSERT (kFirstExtraWideBytecodeHandler+kNumberOfWideBytecodeHandlers==builtin_count)
 
bool is_initialized () const
 
void MarkInitialized ()
 

Static Public Member Functions

static constexpr bool IsBuiltinId (int maybe_id)
 
static BailoutId GetContinuationBailoutId (Name name)
 
static Name GetBuiltinFromBailoutId (BailoutId)
 
static V8_EXPORT_PRIVATE Callable CallableFor (Isolate *isolate, Name name)
 
static int GetStackParameterCount (Name name)
 
static const charname (int index)
 
static Address CppEntryOf (int index)
 
static Kind KindOf (int index)
 
static const charKindNameOf (int index)
 
static bool IsCpp (int index)
 
static bool HasCppImplementation (int index)
 
static bool IsBuiltin (const Code code)
 
static bool IsIsolateIndependentBuiltin (const Code code)
 
static bool IsIsolateIndependent (int index)
 
static bool IsWasmRuntimeStub (int index)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< ObjectInvokeApiFunction (Isolate *isolate, bool is_construct, Handle< HeapObject > function, Handle< Object > receiver, int argc, Handle< Object > args[], Handle< HeapObject > new_target)
 
static void Generate_Adaptor (MacroAssembler *masm, Address builtin_address, ExitFrameType exit_frame_type)
 
static void Generate_CEntry (MacroAssembler *masm, int result_size, SaveFPRegsMode save_doubles, ArgvMode argv_mode, bool builtin_exit_frame)
 
static bool AllowDynamicFunction (Isolate *isolate, Handle< JSFunction > target, Handle< JSObject > target_global_proxy)
 
static Handle< CodeGenerateOffHeapTrampolineFor (Isolate *isolate, Address off_heap_entry)
 
static Handle< ByteArrayGenerateOffHeapTrampolineRelocInfo (Isolate *isolate)
 

Static Public Attributes

static const int32_t kNoBuiltinId = -1
 
static constexpr int kFirstWideBytecodeHandler
 
static constexpr int kFirstExtraWideBytecodeHandler
 

Friends

class SetupIsolateDelegate
 

Detailed Description

Definition at line 38 of file builtins.h.

Member Data Documentation

◆ kFirstExtraWideBytecodeHandler

constexpr int v8::internal::Builtins::kFirstExtraWideBytecodeHandler
static
Initial value:
=
kFirstWideBytecodeHandler + kNumberOfWideBytecodeHandlers

Definition at line 124 of file builtins.h.

◆ kFirstWideBytecodeHandler

constexpr int v8::internal::Builtins::kFirstWideBytecodeHandler
static
Initial value:
=
kFirstBytecodeHandler + kNumberOfBytecodeHandlers

Definition at line 122 of file builtins.h.


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