projects
/
mate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2c86c59
)
codegen: throw: force runtime error on execution
author
Bernhard Urban
<lewurm@gmail.com>
Mon, 18 Jun 2012 17:48:54 +0000
(19:48 +0200)
committer
Bernhard Urban
<lewurm@gmail.com>
Tue, 19 Jun 2012 19:33:03 +0000
(21:33 +0200)
Mate/X86CodeGen.hs
patch
|
blob
|
history
diff --git
a/Mate/X86CodeGen.hs
b/Mate/X86CodeGen.hs
index b4b72b179c81b32e5ce6df152971fc3504f96283..80def613ec26ec7b5cbb8d4fcdaffefd668cf03e 100644
(file)
--- a/
Mate/X86CodeGen.hs
+++ b/
Mate/X86CodeGen.hs
@@
-240,7
+240,8
@@
emitFromBB method sig cls hmap = do
emit (INSTANCEOF _) = do
pop eax
push (1 :: Word32)
- emit ATHROW = nop -- TODO(bernhard): ...
+ emit ATHROW = do -- TODO(bernhard): ...
+ emit32 (0xffffffff :: Word32)
emit I2C = do
pop eax
and eax (0x000000ff :: Word32)