Index: src/compiler/wasm-compiler.h |
diff --git a/src/compiler/wasm-compiler.h b/src/compiler/wasm-compiler.h |
index fa01b485373a35118448da10ea8ac459a9946181..4d0c081d52706f23508a9234803860f48f12f511 100644 |
--- a/src/compiler/wasm-compiler.h |
+++ b/src/compiler/wasm-compiler.h |
@@ -102,6 +102,12 @@ Handle<Code> CompileJSToWasmWrapper(Isolate* isolate, |
const wasm::WasmModule* module, |
Handle<Code> wasm_code, uint32_t index); |
+// Compiles a function which captures the parameters and calls into the wasm |
titzer
2017/01/11 15:52:34
Can we reword this comment, since "capture" has a
Clemens Hammacher
2017/01/11 16:56:10
Done.
|
+// interpreter. It's ABI compatible with the compiled wasm function. |
+Handle<Code> CompileWasmInterpreterEntry(Isolate* isolate, uint32_t func_index, |
+ wasm::FunctionSig* sig, |
+ Handle<WasmInstanceObject> instance); |
+ |
// Abstracts details of building TurboFan graph nodes for WASM to separate |
// the WASM decoder from the internal details of TurboFan. |
class WasmTrapHelper; |
@@ -182,6 +188,8 @@ class WasmGraphBuilder { |
void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig); |
void BuildWasmToJSWrapper(Handle<JSReceiver> target, wasm::FunctionSig* sig); |
+ void BuildWasmInterpreterEntry(uint32_t func_index, wasm::FunctionSig* sig, |
+ Handle<WasmInstanceObject> instance); |
Node* ToJS(Node* node, wasm::ValueType type); |
Node* FromJS(Node* node, Node* context, wasm::ValueType type); |