codegen: correct argument handling
authorBernhard Urban <lewurm@gmail.com>
Sun, 22 Apr 2012 18:42:50 +0000 (20:42 +0200)
committerBernhard Urban <lewurm@gmail.com>
Sun, 22 Apr 2012 18:42:50 +0000 (20:42 +0200)
commitf0b4e78c77e6503703fd7ace19e203ce06718397
treed01abd572cc6f1ca22b085219f7c1d16154e957a
parent2113a216f0dbae2f4ef41aba13b157c9b1ad1e78
codegen: correct argument handling

after a call, we have to decrement the stack pointer again, according how many
arguments that method has. also, we have to push the result in %eax only when
there's a result (i.e. /= void)
Makefile
Mate/Utilities.hs
Mate/X86CodeGen.hs
tests/ArgumentPassing1.java [new file with mode: 0644]