From: Bernhard Urban Date: Sun, 20 May 2012 21:29:37 +0000 (+0200) Subject: codegen: add instanceof stub X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mate.git;a=commitdiff_plain;h=824e262531210507c9e898c7e1e8df3c3776d503 codegen: add instanceof stub gnuclasspath is going crazy now o_O --- diff --git a/Mate/X86CodeGen.hs b/Mate/X86CodeGen.hs index c45f908..9ba2ddd 100644 --- 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