Index: src/ia32/codegen-ia32.cc |
=================================================================== |
--- src/ia32/codegen-ia32.cc (revision 3863) |
+++ src/ia32/codegen-ia32.cc (working copy) |
@@ -8520,6 +8520,11 @@ |
void ArgumentsAccessStub::GenerateNewObject(MacroAssembler* masm) { |
+ // esp[0] : return address |
+ // esp[4] : number of parameters |
+ // esp[8] : receiver displacement |
+ // esp[16] : function |
+ |
// The displacement is used for skipping the return address and the |
// frame pointer on the stack. It is the offset of the last |
// parameter (if any) relative to the frame pointer. |
@@ -8603,7 +8608,6 @@ |
__ add(Operand(edi), Immediate(kPointerSize)); |
__ sub(Operand(edx), Immediate(kPointerSize)); |
__ dec(ecx); |
- __ test(ecx, Operand(ecx)); |
__ j(not_zero, &loop); |
// Return and remove the on-stack parameters. |