Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 897a3d54f6b36fff6ca80dac3c62c2be0e910892..348bb1484b4cece7f63c8cff748cd8b235b97f3c 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -2964,16 +2964,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(eax); |
- __ push(Immediate(Smi::FromInt(0))); |
- __ push(eax); |
- |
- // Do tail-call to runtime routine. |
- __ TailCallRuntime(Runtime::kStackGuard, 1, 1); |
+ __ TailCallRuntime(Runtime::kStackGuard, 0, 1); |
} |