about summary refs log tree commit diff
path: root/src/rt
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-12-19 16:12:24 -0800
committerBrian Anderson <banderson@mozilla.com>2011-12-19 18:16:19 -0800
commitc3569abb8c7f81e521bc6002b351c3b4fbfcce4c (patch)
tree0a3f6453e05b8fe41e7550654f60c15c83e7e2d0 /src/rt
parentd2e7336a01f1515564a32ecb5a6368ce10088c33 (diff)
downloadrust-c3569abb8c7f81e521bc6002b351c3b4fbfcce4c.tar.gz
rust-c3569abb8c7f81e521bc6002b351c3b4fbfcce4c.zip
rt: Remove some unused stack from i386/morestack.S
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/arch/i386/morestack.S18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/rt/arch/i386/morestack.S b/src/rt/arch/i386/morestack.S
index 18ee13f124d..c34d1a0fe88 100644
--- a/src/rt/arch/i386/morestack.S
+++ b/src/rt/arch/i386/morestack.S
@@ -144,11 +144,11 @@ MORESTACK:
 	// NB: __morestack is called misaligned by 4 bytes, i.e.
 	// subl $4, %esp would get us to a normal alignment
 
-	subl $44,%esp
+	subl $28,%esp
 
 	// Save fastcc arguments
-	movl %ecx, 28(%esp)
-	movl %edx, 24(%esp)
+	movl %ecx, 16(%esp)
+	movl %edx, 12(%esp)
 
 	// FIXME (1226): main is compiled with the split-stack prologue,
 	// causing it to call __morestack, so we have to jump back out
@@ -160,14 +160,14 @@ MORESTACK:
 
 	// The size of the stack arguments to copy to the new stack,
 	// ane of the the arguments to __morestack
-	movl 56(%esp),%eax
+	movl 40(%esp),%eax
 	movl %eax,8(%esp)
 	// The address of the stack arguments to the original function
-	leal 64(%esp),%eax
+	leal 48(%esp),%eax
 	movl %eax,4(%esp)
 	// The amount of stack needed for the original function,
 	// the other argument to __morestack
-	movl 52(%esp),%eax // The amount of stack needed
+	movl 36(%esp),%eax // The amount of stack needed
 	movl %eax,(%esp)
 
 	call UPCALL_NEW_STACK
@@ -176,13 +176,13 @@ MORESTACK:
 	movl %eax, (%esp)
 
 	// Grab the __morestack return pointer
-	movl 48(%esp),%eax
+	movl 32(%esp),%eax
 	// Skip past the ret instruction in the parent fn
 	inc  %eax
 
 	// Restore the fastcc arguments to the original function
-	movl 28(%esp), %ecx
-	movl 24(%esp), %edx
+	movl 16(%esp), %ecx
+	movl 12(%esp), %edx
 
         // Switch stacks
 	movl (%esp),%esp