classpool: we want the object size
[mate.git] / Mate / X86CodeGen.hs
index d95358c959440d0acab0d5a016b09b4fa6834f1a..0392da585ef9816e0342dcf51132ef33687901fa 100644 (file)
@@ -265,7 +265,7 @@ emitFromBB method cls hmap =  do
         push eax -- push ref again
     emit (NEW objidx) = do
         let objname = buildClassID cls objidx
-        amount <- liftIO $ getMethodSize objname
+        amount <- liftIO $ getObjectSize objname
         push (amount :: Word32)
         callMalloc
         -- TODO(bernhard): save reference somewhere for GC