projects
/
mate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
callconv: once again, fail...
[mate.git]
/
Mate
/
X86CodeGen.hs
diff --git
a/Mate/X86CodeGen.hs
b/Mate/X86CodeGen.hs
index 57ffdff6ef9f77dc5d807efa186b53120603ae1b..70ee0136e60c0cc0bdd482e823f252b9ad195707 100644
(file)
--- a/
Mate/X86CodeGen.hs
+++ b/
Mate/X86CodeGen.hs
@@
-294,7
+294,7
@@
emitFromBB method cls hmap = do
cArgs x = if (x' >= thisMethodArgCnt)
-- TODO(bernhard): maybe s/(-4)/(-8)/
then fromIntegral $ (-4) * (x' - thisMethodArgCnt + 1)
- else
8 +
(4 * x')
+ else
4 + (thisMethodArgCnt * 4) -
(4 * x')
where x' = fromIntegral x
cArgs_ :: IMM -> Word32