5#ifndef V8_SNAPSHOT_SORT_BUILTINS_H_
6#define V8_SNAPSHOT_SORT_BUILTINS_H_
8#include <unordered_map>
64using CallGraph = std::unordered_map<Builtin, CallProbabilities>;
93 std::vector<Builtin>
SortBuiltins(
const char* profiling_file,
94 const std::vector<uint32_t>& builtin_size);
98 const std::vector<uint32_t>& size);
104 std::istringstream& line_stream,
105 std::unordered_map<std::string, Builtin>& name2id);
107 std::istringstream& line_stream,
108 std::unordered_map<std::string, Builtin>& name2id);
std::vector< BuiltinDensitySlot > builtin_density_order_
BuiltinClusterMap builtin_cluster_map_
const uint32_t kMaxClusterSize
void ProcessBlockCountLineInfo(std::istringstream &line_stream, std::unordered_map< std::string, Builtin > &name2id)
std::vector< Builtin > SortBuiltins(const char *profiling_file, const std::vector< uint32_t > &builtin_size)
std::vector< Cluster * > clusters_
void ProcessBuiltinDensityLineInfo(std::istringstream &line_stream, std::unordered_map< std::string, Builtin > &name2id)
const std::string kBuiltinCallBlockDensityMarker
void InitializeCallGraph(const char *profiling_file, const std::vector< uint32_t > &size)
BuiltinSize builtin_size_
const int32_t kMinEdgeProbabilityThreshold
Builtin FindBestPredecessorOf(Builtin callee)
const std::string kBuiltinDensityMarker
BuiltinDensityMap builtin_density_map_
void InitializeClusters()
const uint32_t kMaxDensityDecreaseThreshold
void MergeBestPredecessors()
uint64_t time_approximation()
void Merge(Cluster *other)
std::vector< Builtin > targets_
Cluster(uint32_t density, uint32_t size, Builtin target, BuiltinsSorter *sorter)
std::unordered_map< Builtin, CallProbabilities > CallGraph
std::unordered_map< Builtin, Cluster * > BuiltinClusterMap
std::vector< uint32_t > BuiltinSize
std::unordered_map< Builtin, uint32_t > BuiltinDensityMap
std::unordered_map< Builtin, CallProbability > CallProbabilities
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 * MB
BuiltinDensitySlot(uint32_t density, Builtin builtin)
CallProbability(int32_t incoming=0, int32_t outgoing=0)