5#ifndef V8_WASM_WASM_FEATURES_H_
6#define V8_WASM_WASM_FEATURES_H_
8#if !V8_ENABLE_WEBASSEMBLY
9#error This header should only be included if WebAssembly is enabled.
21#define FOREACH_WASM_NON_FLAG_FEATURE(V) \
35#define FOREACH_WASM_FEATURE(V) \
36 FOREACH_WASM_FEATURE_FLAG(V) \
37 FOREACH_WASM_NON_FLAG_FEATURE(V)
42#define DECL_FEATURE_ENUM(feat, ...) feat,
44#undef DECL_FEATURE_ENUM
48#define DECL_FEATURE_ENUM(feat, ...) feat,
50#undef DECL_FEATURE_ENUM
58 std::initializer_list<WasmEnabledFeature> features)
63#define DECL_FEATURE_GETTER(feat, ...) \
64 constexpr bool has_##feat() const { \
65 return contains(WasmEnabledFeature::feat); \
68#undef DECL_FEATURE_GETTER
71#define LIST_FEATURE(feat, ...) WasmEnabledFeature::feat,
97#define DECL_FEATURE_GETTER(feat, ...) \
98 constexpr void add_##feat() { Add(WasmDetectedFeature::feat); } \
99 constexpr bool has_##feat() const { \
100 return contains(WasmDetectedFeature::feat); \
103#undef DECL_FEATURE_GETTER
108#define NAME(feat, ...) \
109 case WasmEnabledFeature::feat: \
117 return os <<
name(feature);
122#define NAME(feat, ...) \
123 case WasmDetectedFeature::feat: \
131 return os <<
name(feature);
144 return os << static_cast<int>(imp);
157 *
this = std::move(other);
constexpr void Add(E element)
constexpr EnumSet()=default
static constexpr EnumSet FromIntegral(int bits)
constexpr bool empty() const
constexpr T ToIntegral() const
constexpr bool contains(E element) const
CompileTimeImportFlags bits_
std::string constants_module_
bool has_string_constants(base::Vector< const uint8_t > name) const
CompileTimeImportFlags flags() const
CompileTimeImports & operator=(const CompileTimeImports &other) V8_NOEXCEPT=default
const std::string & constants_module() const
CompileTimeImports & operator=(CompileTimeImports &&other) V8_NOEXCEPT
static CompileTimeImports FromSerialized(CompileTimeImportFlags::StorageType flags, base::Vector< const char > constants_module)
CompileTimeImports()=default
std::string & constants_module()
bool contains(CompileTimeImport imp) const
int compare(const CompileTimeImports &other) const
CompileTimeImports(const CompileTimeImports &other) V8_NOEXCEPT=default
CompileTimeImports(CompileTimeImports &&other) V8_NOEXCEPT
void Add(CompileTimeImport imp)
constexpr WasmDetectedFeatures(base::EnumSet< WasmDetectedFeature > features)
constexpr WasmDetectedFeatures()=default
constexpr WasmEnabledFeatures(std::initializer_list< WasmEnabledFeature > features)
static V8_EXPORT_PRIVATE WasmEnabledFeatures FromContext(Isolate *, DirectHandle< NativeContext >)
static V8_EXPORT_PRIVATE WasmEnabledFeatures FromIsolate(Isolate *)
static constexpr WasmEnabledFeatures All()
static V8_EXPORT_PRIVATE WasmEnabledFeatures FromFlags()
static constexpr WasmEnabledFeatures ForAsmjs()
constexpr WasmEnabledFeatures()=default
static constexpr WasmEnabledFeatures None()
ZoneVector< RpoNumber > & result
#define LIST_FEATURE(name,...)
DECL_FEATURE_ENUM(feat,...)
std::ostream & operator<<(std::ostream &os, LiftoffVarState slot)
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 name
#define V8_EXPORT_PRIVATE
#define FOREACH_WASM_FEATURE_FLAG(V)
#define DECL_FEATURE_GETTER(feat,...)
#define FOREACH_WASM_FEATURE(V)