Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 6670510e13302ec852fbf1a87a0adb295074a4a1..3643e782ab5bbd3db9f67e732c1fa85f2047c1d9 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -2982,7 +2982,11 @@ void CallFunctionStub::Generate(MacroAssembler* masm) { |
Label call_as_function; |
__ CompareRoot(rax, Heap::kTheHoleValueRootIndex); |
__ j(equal, &call_as_function); |
- __ InvokeFunction(rdi, actual, JUMP_FUNCTION); |
+ __ InvokeFunction(rdi, |
+ actual, |
+ JUMP_FUNCTION, |
+ NullCallWrapper(), |
+ CALL_AS_METHOD); |
__ bind(&call_as_function); |
} |
__ InvokeFunction(rdi, |