From 31f4b07389f036f03bcd9e2d7bdce916b1603000 Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Mon, 18 Jun 2012 19:48:54 +0200 Subject: [PATCH] codegen: throw: force runtime error on execution --- Mate/X86CodeGen.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.25.1