| 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
|
|
|