v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
builtins.h File Reference
Include dependency graph for builtins.h:

Go to the source code of this file.

Classes

class  v8::internal::Builtins
 

Namespaces

namespace  v8
 
namespace  v8::internal
 
namespace  v8::internal::compiler
 
namespace  v8::internal::compiler::turboshaft
 

Macros

#define BUILTIN_CODE(isolate, name)
 
#define DEF_ENUM(Name, ...)
 
#define EXTRACT_NAME(Name, ...)
 
#define DEF_ENUM(Name, ...)
 
#define CASE(Name, ...)
 
#define ADD_ONE(Name, ...)
 
#define DECLARE_ASM(Name, ...)
 
#define DECLARE_TF(Name, ...)
 
#define DECLARE_TS(Name, ...)
 
#define SIN_IMPL(X)
 
#define COS_IMPL(X)
 

Enumerations

enum class  v8::internal::Builtin : int32_t { v8::internal::kNoBuiltinId = -1 , v8::internal::DEF_ENUM , v8::internal::BUILTIN_LIST }
 
enum class  v8::internal::TieringBuiltin : int32_t { v8::internal::DEF_ENUM }
 

Functions

template<typename T >
static constexpr T v8::internal::FirstFromVarArgs (T x,...) noexcept
 
V8_INLINE bool v8::internal::IsValidTieringBuiltin (TieringBuiltin builtin)
 
V8_INLINE constexpr bool v8::internal::operator< (Builtin a, Builtin b)
 
V8_INLINE Builtin v8::internal::operator++ (Builtin &builtin)
 
V8_INLINE constexpr bool v8::internal::IsInterpreterTrampolineBuiltin (Builtin builtin_id)
 
V8_INLINE constexpr bool v8::internal::IsBaselineTrampolineBuiltin (Builtin builtin_id)
 
Builtin v8::internal::ExampleBuiltinForTorqueFunctionPointerType (size_t function_pointer_type_id)
 

Macro Definition Documentation

◆ ADD_ONE

#define ADD_ONE ( Name,
... )
Value:
+1

Definition at line 104 of file builtins.h.

◆ BUILTIN_CODE

#define BUILTIN_CODE ( isolate,
name )
Value:
(isolate)->builtins()->code_handle(i::Builtin::k##name)
Isolate * isolate

Definition at line 45 of file builtins.h.

◆ CASE

#define CASE ( Name,
... )
Value:
if (builtin == TieringBuiltin::k##Name) { \
return true; \
}

◆ COS_IMPL

#define COS_IMPL ( X)
Value:
base::ieee754::cos(X)
too high values may cause the compiler to set high thresholds for inlining to as much as possible avoid inlined allocation of objects that cannot escape trace load stores from virtual maglev objects use TurboFan fast string builder analyze liveness of environment slots and zap dead values trace TurboFan load elimination emit data about basic block usage in builtins to this enable builtin reordering when run mksnapshot flag for emit warnings when applying builtin profile data verify register allocation in TurboFan randomly schedule instructions to stress dependency tracking enable store store elimination in TurboFan rewrite far to near simulate GC compiler thread race related to allow float parameters to be passed in simulator mode JS Wasm Run additional turbo_optimize_inlined_js_wasm_wrappers enable experimental feedback collection in generic lowering enable Turboshaft s WasmLoadElimination enable Turboshaft s low level load elimination for JS enable Turboshaft s escape analysis for string concatenation use enable Turbolev features that we want to ship in the not too far future trace individual Turboshaft reduction steps trace intermediate Turboshaft reduction steps invocation count threshold for early optimization Enables optimizations which favor memory size over execution speed Enables sampling allocation profiler with X as a sample interval min size of a semi the new space consists of two semi spaces max size of the Collect garbage after Collect garbage after keeps maps alive for< n > old space garbage collections print one detailed trace line in allocation gc speed threshold for starting incremental marking via a task in percent of available threshold for starting incremental marking immediately in percent of available Use a single schedule for determining a marking schedule between JS and C objects schedules the minor GC task with kUserVisible priority max worker number of concurrent for NumberOfWorkerThreads start background threads that allocate memory concurrent_array_buffer_sweeping use parallel threads to clear weak refs in the atomic pause trace progress of the incremental marking trace object counts and memory usage report a tick only when allocated zone memory changes by this amount TracingFlags::gc_stats TracingFlags::gc_stats track native contexts that are expected to be garbage collected verify heap pointers before and after GC memory reducer runs GC with ReduceMemoryFootprint flag Maximum number of memory reducer GCs scheduled Old gen GC speed is computed directly from gc tracer counters Perform compaction on full GCs based on V8 s default heuristics Perform compaction on every full GC Perform code space compaction when finalizing a full GC with stack Stress GC compaction to flush out bugs with moving objects flush of baseline code when it has not been executed recently Use time base code flushing instead of age Use a progress bar to scan large objects in increments when incremental marking is active force incremental marking for small heaps and run it more often force marking at random points between and X(inclusive) percent " "of the regular marking start limit") DEFINE_INT(stress_scavenge

Definition at line 471 of file builtins.h.

◆ DECLARE_ASM

#define DECLARE_ASM ( Name,
... )
Value:
static void Generate_##Name(MacroAssembler* masm);

Definition at line 401 of file builtins.h.

◆ DECLARE_TF

#define DECLARE_TF ( Name,
... )
Value:
static void Generate_##Name(compiler::CodeAssemblerState* state);

Definition at line 403 of file builtins.h.

◆ DECLARE_TS

#define DECLARE_TS ( Name,
... )
Value:
static void Generate_##Name(compiler::turboshaft::PipelineData* data, \
Isolate* isolate, \
compiler::turboshaft::Graph& graph, Zone* zone);
friend Zone
Definition asm-types.cc:195

Definition at line 405 of file builtins.h.

◆ DEF_ENUM [1/2]

#define DEF_ENUM ( Name,
... )
Value:
k##Name,

Definition at line 50 of file builtins.h.

◆ DEF_ENUM [2/2]

#define DEF_ENUM ( Name,
... )
Value:
k##Name = static_cast<int32_t>(Builtin::k##Name),

Definition at line 50 of file builtins.h.

◆ EXTRACT_NAME

#define EXTRACT_NAME ( Name,
... )
Value:
k##Name,

◆ SIN_IMPL

#define SIN_IMPL ( X)
Value:
base::ieee754::sin(X)

Definition at line 470 of file builtins.h.