Index: src/compiler/wasm-compiler.h |
diff --git a/src/compiler/wasm-compiler.h b/src/compiler/wasm-compiler.h |
index c03de3d7d46eef4b1c367737b655a4deedd78599..03d476505775027640000c5ff552afa6eb270783 100644 |
--- a/src/compiler/wasm-compiler.h |
+++ b/src/compiler/wasm-compiler.h |
@@ -89,6 +89,12 @@ Handle<JSFunction> CompileJSToWasmWrapper( |
Isolate* isolate, wasm::ModuleEnv* module, Handle<String> name, |
Handle<Code> wasm_code, Handle<JSObject> module_object, uint32_t index); |
+// Compiles a function which captures the parameters and calls into the wasm |
+// interpreter. It's ABI compatible with the real wasm function. |
+Handle<Code> CompileWasmToInterpreter(Isolate* isolate, uint32_t func_index, |
+ wasm::FunctionSig* sig, |
+ Handle<JSObject> wasm_obj); |
+ |
// Abstracts details of building TurboFan graph nodes for WASM to separate |
// the WASM decoder from the internal details of TurboFan. |
class WasmTrapHelper; |
@@ -154,6 +160,8 @@ class WasmGraphBuilder { |
void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig); |
void BuildWasmToJSWrapper(Handle<JSFunction> function, |
wasm::FunctionSig* sig); |
+ void BuildWasmToInterpreter(uint32_t func_index, wasm::FunctionSig* sig, |
+ Handle<JSObject> wasm_obj); |
Node* ToJS(Node* node, Node* context, wasm::LocalType type); |
Node* FromJS(Node* node, Node* context, wasm::LocalType type); |