diff options
Diffstat (limited to 'deps/v8/test/fuzzer/wasm.cc')
-rw-r--r-- | deps/v8/test/fuzzer/wasm.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/deps/v8/test/fuzzer/wasm.cc b/deps/v8/test/fuzzer/wasm.cc index aaa958c4d5..fe3cdfcbea 100644 --- a/deps/v8/test/fuzzer/wasm.cc +++ b/deps/v8/test/fuzzer/wasm.cc @@ -24,16 +24,13 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { // We explicitly enable staged WebAssembly features here to increase fuzzer // coverage. For libfuzzer fuzzers it is not possible that the fuzzer enables // the flag by itself. -#define ENABLE_STAGED_FEATURES(feat, desc, val) \ - i::FlagScope<bool> enable_##feat(&i::FLAG_experimental_wasm_##feat, true); - FOREACH_WASM_STAGING_FEATURE_FLAG(ENABLE_STAGED_FEATURES) -#undef ENABLE_STAGED_FEATURES + i::wasm::fuzzer::OneTimeEnableStagedWasmFeatures(); // We reduce the maximum memory size and table size of WebAssembly instances // to avoid OOMs in the fuzzer. - i::FlagScope<uint32_t> max_mem_flag_scope(&i::FLAG_wasm_max_mem_pages, 32); - i::FlagScope<uint32_t> max_table_size_scope(&i::FLAG_wasm_max_table_size, - 100); + i::FLAG_wasm_max_mem_pages = 32; + i::FLAG_wasm_max_table_size = 100; + v8_fuzzer::FuzzerSupport* support = v8_fuzzer::FuzzerSupport::Get(); v8::Isolate* isolate = support->GetIsolate(); i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |