Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index a3db777404a1208d3d6d0f264a056f360e6d8bbc..aca21a12749594f86a0dc9a000cb1b6f2a32209d 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -3224,7 +3224,7 @@ void ToNumberStub::Generate(MacroAssembler* masm) { |
__ PopReturnAddressTo(rcx); // Pop return address. |
__ Push(rax); // Push argument. |
__ PushReturnAddressFrom(rcx); // Push return address. |
- __ InvokeBuiltin(Context::TO_NUMBER_BUILTIN_INDEX, JUMP_FUNCTION); |
+ __ TailCallRuntime(Runtime::kToNumber, 1, 1); |
} |