Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1302)

Unified Diff: test/fuzzer/wasm-asmjs.cc

Issue 2320723005: [wasm] Compilation/Instantiation pipeline works off module object (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/fuzzer/wasm.cc ('k') | test/fuzzer/wasm-code.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/fuzzer/wasm-asmjs.cc
diff --git a/test/fuzzer/wasm-asmjs.cc b/test/fuzzer/wasm-asmjs.cc
index 386edcd03507b5dbfe18d2a72a17c9a739d78600..1d9175ae30c82197e6a005aa5718a7b0da589355 100644
--- a/test/fuzzer/wasm-asmjs.cc
+++ b/test/fuzzer/wasm-asmjs.cc
@@ -32,9 +32,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
v8::HandleScope handle_scope(isolate);
v8::Context::Scope context_scope(support->GetContext());
v8::TryCatch try_catch(isolate);
- v8::internal::WasmJs::InstallWasmFunctionMap(i_isolate,
- i_isolate->native_context());
- v8::internal::wasm::testing::CompileAndRunWasmModule(i_isolate, data,
- data + size, true);
+ v8::internal::WasmJs::SetupIsolateForWasm(i_isolate);
+ v8::internal::wasm::testing::CompileAndRunWasmModule(
+ i_isolate, data, data + size,
+ v8::internal::wasm::ModuleOrigin::kAsmJsOrigin);
return 0;
}
« no previous file with comments | « test/fuzzer/wasm.cc ('k') | test/fuzzer/wasm-code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698