From: Bernhard Urban Date: Mon, 18 Jun 2012 17:48:54 +0000 (+0200) Subject: codegen: throw: force runtime error on execution X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mate.git;a=commitdiff_plain;h=31f4b07389f036f03bcd9e2d7bdce916b1603000 codegen: throw: force runtime error on execution --- diff --git a/Mate/X86CodeGen.hs b/Mate/X86CodeGen.hs index b4b72b1..80def61 100644 --- 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)