Index: src/builtins/x64/builtins-x64.cc |
diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc |
index beae2d29c36bdbcb3de0fd3401ce678974b517b3..fb1c5982d3360c991fe2e8db5267fef3de6309d4 100644 |
--- a/src/builtins/x64/builtins-x64.cc |
+++ b/src/builtins/x64/builtins-x64.cc |
@@ -2583,8 +2583,8 @@ void Builtins::Generate_CallFunction(MacroAssembler* masm, |
__ Push(rdi); |
__ movp(rax, rcx); |
__ Push(rsi); |
- ToObjectStub stub(masm->isolate()); |
- __ CallStub(&stub); |
+ __ Call(masm->isolate()->builtins()->ToObject(), |
+ RelocInfo::CODE_TARGET); |
__ Pop(rsi); |
__ movp(rcx, rax); |
__ Pop(rdi); |