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

Unified Diff: test/cctest/wasm/wasm-run-utils.h

Issue 2263953002: [wasm] Use the right context in the wasm-to-js wrapper. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup the test. Created 4 years, 4 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
Index: test/cctest/wasm/wasm-run-utils.h
diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h
index a9f70deadf5725e5b9bd21f98279bb277b53819d..d351752a2f563913aebc92917176b9e7fbb67a01 100644
--- a/test/cctest/wasm/wasm-run-utils.h
+++ b/test/cctest/wasm/wasm-run-utils.h
@@ -196,9 +196,9 @@ class TestingModule : public ModuleEnv {
Handle<JSFunction> jsfunc = Handle<JSFunction>::cast(v8::Utils::OpenHandle(
*v8::Local<v8::Function>::Cast(CompileRun(source))));
uint32_t index = AddFunction(sig, Handle<Code>::null());
- Handle<Code> code =
- CompileWasmToJSWrapper(isolate_, jsfunc, sig, index,
- Handle<String>::null(), Handle<String>::null());
+ Handle<Code> code = CompileWasmToJSWrapper(
+ isolate_, handle(isolate_->context(), isolate_), jsfunc, sig, index,
+ Handle<String>::null(), Handle<String>::null());
instance->function_code[index] = code;
return index;
}

Powered by Google App Engine
This is Rietveld 408576698