| 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 ccd039a94984b53876722a86b161508dc071a1ec..cd08b356157a71f29ea70a1bf17f5934b3a2be2e 100644
|
| --- a/test/cctest/wasm/wasm-run-utils.h
|
| +++ b/test/cctest/wasm/wasm-run-utils.h
|
| @@ -207,9 +207,12 @@ class TestingModule : public ModuleEnv {
|
| Handle<JSObject> module_object = Handle<JSObject>(0, isolate_);
|
| Handle<Code> code = instance->function_code[index];
|
| WasmJs::InstallWasmFunctionMap(isolate_, isolate_->native_context());
|
| - Handle<JSFunction> ret =
|
| - compiler::CompileJSToWasmWrapper(isolate_, this, name, code, index);
|
| - ret->SetInternalField(0, *module_object);
|
| + Handle<Code> ret_code =
|
| + compiler::CompileJSToWasmWrapper(isolate_, this, code, index);
|
| + Handle<JSFunction> ret = CreateExport(
|
| + isolate_, ret_code, name,
|
| + static_cast<int>(this->module->functions[index].sig->parameter_count()),
|
| + module_object);
|
| return ret;
|
| }
|
|
|
| @@ -238,6 +241,7 @@ class TestingModule : public ModuleEnv {
|
| *instance->function_code[function_index]);
|
| }
|
| }
|
| +
|
| WasmFunction* GetFunctionAt(int index) { return &module_.functions[index]; }
|
|
|
| WasmInterpreter* interpreter() { return interpreter_; }
|
|
|