r5030@macbookpro: aamine | 2009-06-06 21:36:52 +0900

* lib/alloca.s: shorten assembly.
 


git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4276 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
Minero Aoki 2009-06-06 12:37:05 +00:00
parent 4cf7bd2ae8
commit 0f036467ce
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Sat Jun 6 21:36:09 2009 Minero Aoki <aamine@loveruby.net>
* lib/alloca.s: shorten assembly.
Sat Jun 6 21:28:20 2009 Minero Aoki <aamine@loveruby.net>
* sysdep/x86/CodeGenerator.java: refactoring: rename method:

View File

@ -2,13 +2,11 @@
.globl alloca
.type alloca,@function
alloca:
addl $4, %esp
movl -4(%esp), %ecx
popl %ecx
movl (%esp), %eax
addl $3, %eax
andl $-4, %eax
subl %eax, %esp
movl %esp, %eax
addl $4, %eax
leal 4(%esp), %eax
jmp *%ecx
.size alloca, .-alloca