Index: src/compiler/wasm-compiler.h |
diff --git a/src/compiler/wasm-compiler.h b/src/compiler/wasm-compiler.h |
index d4bcf1e1911d7103297b029abca8bc06144aaf46..cfffa466ab3f2a26ddf453f802e49e6d7c5067dc 100644 |
--- a/src/compiler/wasm-compiler.h |
+++ b/src/compiler/wasm-compiler.h |
@@ -82,8 +82,7 @@ class WasmCompilationUnit final { |
}; |
// Wraps a JS function, producing a code object that can be called from WASM. |
-Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, |
- Handle<JSFunction> function, |
+Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, Handle<JSReceiver> target, |
wasm::FunctionSig* sig, uint32_t index, |
Handle<String> import_module, |
MaybeHandle<String> import_function); |
@@ -162,8 +161,7 @@ class WasmGraphBuilder { |
uint32_t sig_index, wasm::FunctionSig* sig, |
wasm::WasmCodePosition position); |
void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig); |
- void BuildWasmToJSWrapper(Handle<JSFunction> function, |
- wasm::FunctionSig* sig); |
+ void BuildWasmToJSWrapper(Handle<JSReceiver> target, wasm::FunctionSig* sig); |
Node* ToJS(Node* node, Node* context, wasm::LocalType type); |
Node* FromJS(Node* node, Node* context, wasm::LocalType type); |