Index: src/compiler/wasm-compiler.h |
diff --git a/src/compiler/wasm-compiler.h b/src/compiler/wasm-compiler.h |
index b4bc3502976b819b17aed7767eeb377b32e38ea3..baaa810c4253c891e6d9bb4cd8c1f8265fc972b7 100644 |
--- a/src/compiler/wasm-compiler.h |
+++ b/src/compiler/wasm-compiler.h |
@@ -11,6 +11,7 @@ |
// Do not include anything from src/compiler here! |
#include "src/compilation-info.h" |
#include "src/compiler.h" |
+#include "src/wasm/wasm-module.h" |
#include "src/wasm/wasm-opcodes.h" |
#include "src/wasm/wasm-result.h" |
#include "src/zone/zone.h" |
@@ -56,7 +57,8 @@ class WasmCompilationUnit final { |
Isolate* isolate, |
wasm::ModuleEnv* module_env, |
const wasm::WasmFunction* function) { |
- WasmCompilationUnit unit(thrower, isolate, module_env, function, 0); |
+ WasmCompilationUnit unit(thrower, isolate, module_env, function, |
+ function->func_index); |
unit.ExecuteCompilation(); |
return unit.FinishCompilation(); |
} |