Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 91db4c61f962fd032506dd0e4f2a9f9563f60624..f04316c3b2098f3f6148d7a143b00883b3cbc8b4 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -593,7 +593,9 @@ |
CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
__ CallStub(&stub); |
} else { |
- __ Call(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); |
+ ParameterCount actual(rax); |
+ // Function must be in rdi. |
+ __ InvokeFunction(rdi, actual, CALL_FUNCTION, NullCallWrapper()); |
} |
// Exit the internal frame. Notice that this also removes the empty |
// context and the function left on the stack by the code |