projects
/
mate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
codegen: throw: force runtime error on execution
[mate.git]
/
Mate
/
X86CodeGen.hs
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)