projects
/
mate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
933ec7b
)
codegen: add instanceof stub
author
Bernhard Urban
<lewurm@gmail.com>
Sun, 20 May 2012 21:29:37 +0000
(23:29 +0200)
committer
Bernhard Urban
<lewurm@gmail.com>
Sun, 20 May 2012 21:29:37 +0000
(23:29 +0200)
gnuclasspath is going crazy now o_O
Mate/X86CodeGen.hs
patch
|
blob
|
history
diff --git
a/Mate/X86CodeGen.hs
b/Mate/X86CodeGen.hs
index c45f9083858c98ce9484af1ecb7b646faa03b55e..9ba2ddd31f6734140f9c0b3a0ef4cac9e6dfaa48 100644
(file)
--- a/
Mate/X86CodeGen.hs
+++ b/
Mate/X86CodeGen.hs
@@
-237,6
+237,10
@@
emitFromBB method sig cls hmap = do
mtable <- liftIO $ getMethodTable objname
mov (Disp 0, eax) mtable
emit (CHECKCAST _) = nop -- TODO(bernhard): ...
+ -- TODO(bernhard): ...
+ emit (INSTANCEOF _) = do
+ pop eax
+ push (1 :: Word32)
emit ATHROW = nop -- TODO(bernhard): ...
emit I2C = do
pop eax