Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 295d758a27d2e8e5f9826ee6766d81fc678d55b6..2d87667baef6cc69478a70bae76dfc97c16b1b62 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -2394,16 +2394,7 @@ void CompareStub::BranchIfNonSymbol(MacroAssembler* masm, |
void StackCheckStub::Generate(MacroAssembler* masm) { |
- // Because builtins always remove the receiver from the stack, we |
- // have to fake one to avoid underflowing the stack. The receiver |
- // must be inserted below the return address on the stack so we |
- // temporarily store that in a register. |
- __ pop(rax); |
- __ Push(Smi::FromInt(0)); |
- __ push(rax); |
- |
- // Do tail-call to runtime routine. |
- __ TailCallRuntime(Runtime::kStackGuard, 1, 1); |
+ __ TailCallRuntime(Runtime::kStackGuard, 0, 1); |
} |