mirror of https://github.com/aamine/cbc
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:
parent
4cf7bd2ae8
commit
0f036467ce
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue