5#ifndef V8_COMPILER_GLOBALS_H_
6#define V8_COMPILER_GLOBALS_H_
28 return v8_flags.turbo_collect_feedback_in_generic_lowering;
40 return Runtime::kStackGuardWithGap;
42 return Runtime::kHandleNoHeapWritesInterrupts;
44 return Runtime::kStackGuard;
53 switch (lazy_deopt_on_throw) {
55 return os <<
"LazyDeoptOnThrow";
57 return os <<
"DoNOTLazyDeoptOnThrow";
64 return os <<
"JSFunctionEntry";
66 return os <<
"JSIterationBody";
68 return os <<
"CodeStubAssembler";
76 return static_cast<size_t>(
kind);
85 return static_cast<size_t>(
mode);
91 return os <<
"check-for-minus-zero";
93 return os <<
"dont-check-for-minus-zero";
111 switch (call_feedback_relation) {
113 return os <<
"CallFeedbackRelation::kReceiver";
115 return os <<
"CallFeedbackRelation::kTarget";
117 return os <<
"CallFeedbackRelation::kUnrelated";
144#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype) \
145 case TYPE##_ELEMENTS: \
146 case RAB_GSAB_##TYPE##_ELEMENTS: \
147 return kExternal##Type##Array;
149#undef TYPED_ARRAY_CASE
157 switch (element_type) {
158#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype) \
159 case kExternal##Type##Array: \
160 DCHECK_LE(sizeof(ctype), 8); \
161 return sizeof(ctype);
165#undef TYPED_ARRAY_CASE
178 std::numeric_limits<int64_t>::min();
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype)
static const int kMaxInObjectProperties
constexpr int32_t kMinusZeroLoBits
constexpr double kMaxDoubleRepresentableInt64
constexpr int64_t kMinusZeroBits
constexpr double kMinDoubleRepresentableInt64
constexpr int32_t kMinusZeroHiBits
constexpr double kMaxDoubleRepresentableUint64
const int kMaxFastLiteralDepth
const int kMaxFastLiteralProperties
Runtime::FunctionId GetBuiltinForStackCheckKind(StackCheckKind kind)
bool CollectFeedbackInGenericLowering()
size_t hash_value(const BranchParameters &p)
int ExternalArrayElementSize(const ExternalArrayType element_type)
@ kProtectedByTrapHandler
std::ostream & operator<<(std::ostream &os, AccessMode access_mode)
ExternalArrayType GetArrayTypeFromElementsKind(ElementsKind kind)
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 force scavenge at random points between and reclaim otherwise unreachable unmodified wrapper objects when possible less compaction in non memory reducing mode use high priority threads for concurrent Marking Test mode only flag It allows an unit test to select evacuation candidates use incremental marking for CppHeap cppheap_concurrent_marking c value for membalancer A special constant to balance between memory and space tradeoff The smaller the more memory it uses enable use of SSE4 instructions if available enable use of AVX VNNI instructions if available enable use of POPCNT instruction if available force all emitted branches to be in long mode(MIPS/PPC only)") DEFINE_BOOL(partial_constant_pool
V8_EXPORT_PRIVATE FlagValues v8_flags
#define V8_EXPORT_PRIVATE