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

Unified Diff: test/fuzzer/wasm.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/cctest/wasm/wasm-module-runner.cc ('k') | test/fuzzer/wasm-asmjs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/fuzzer/wasm.cc
diff --git a/test/fuzzer/wasm.cc b/test/fuzzer/wasm.cc
index 02bc7149f9e6624315953aa5d602188a3755c4c7..ba202988f5d67901c7c38f978264a50138c268a2 100644
--- a/test/fuzzer/wasm.cc
+++ b/test/fuzzer/wasm.cc
@@ -32,9 +32,8 @@ 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, false);
+ v8::internal::WasmJs::SetupIsolateForWasm(i_isolate);
+ v8::internal::wasm::testing::CompileAndRunWasmModule(
+ i_isolate, data, data + size, v8::internal::wasm::kWasmOrigin);
return 0;
}
« no previous file with comments | « test/cctest/wasm/wasm-module-runner.cc ('k') | test/fuzzer/wasm-asmjs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698