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

Unified Diff: test/common/wasm/wasm-module-runner.cc

Issue 2342263002: [wasm] Fix test-run-wasm-module tests in debug mode. (Closed)
Patch Set: Fix stale upload 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
Index: test/common/wasm/wasm-module-runner.cc
diff --git a/test/common/wasm/wasm-module-runner.cc b/test/common/wasm/wasm-module-runner.cc
index 5e1412914dab24121b869fab5dcc2f7af3f51535..95e73a5e72564bf0a4de9af6b807ca59e8b266a1 100644
--- a/test/common/wasm/wasm-module-runner.cc
+++ b/test/common/wasm/wasm-module-runner.cc
@@ -10,6 +10,7 @@
#include "src/property-descriptor.h"
#include "src/wasm/module-decoder.h"
#include "src/wasm/wasm-interpreter.h"
+#include "src/wasm/wasm-js.h"
#include "src/wasm/wasm-module.h"
#include "src/wasm/wasm-result.h"
#include "src/zone.h"
@@ -199,6 +200,12 @@ int32_t CallWasmFunctionForTesting(Isolate* isolate, Handle<JSObject> instance,
return -1;
}
+void SetupIsolateForWasmModule(Isolate* isolate) {
+ WasmJs::InstallWasmFunctionMap(isolate, isolate->native_context());
+ WasmJs::InstallWasmModuleSymbol(isolate, isolate->global_object(),
+ isolate->native_context());
+}
+
} // namespace testing
} // namespace wasm
} // namespace internal

Powered by Google App Engine
This is Rietveld 408576698