X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mate.git;a=blobdiff_plain;f=Mate%2FBasicBlocks.hs;h=955f4f51191d1eae16ebef98636f75d4a4a58a22;hp=996c6728aa92291c6c76910dc05c0d26226b6df0;hb=120517704ac01a6d957b1904d63ab707a0c4ee95;hpb=15fb92c1c2bf005bdb43e77e5cca7550c4e7bf07 diff --git a/Mate/BasicBlocks.hs b/Mate/BasicBlocks.hs index 996c672..955f4f5 100644 --- a/Mate/BasicBlocks.hs +++ b/Mate/BasicBlocks.hs @@ -100,6 +100,7 @@ parseMethod cls methodname sig = do let mapbb = testCFG decoded let locals = fromIntegral (codeMaxLocals decoded) let stacks = fromIntegral (codeStackSize decoded) + let codelen = fromIntegral (codeLength decoded) let methoddirect = methodInfoToMethod (MethodInfo methodname "" sig) cls let isStatic = methodIsStatic methoddirect let nametype = methodNameType methoddirect @@ -119,7 +120,7 @@ parseMethod cls methodname sig = do printfBb "exception: no handler for this method\n" Just exceptionstream -> printfBb "exception: \"%s\"\n" (show $ codeExceptions $ decodeMethod exceptionstream) - return $ RawMethod mapbb locals stacks argscount + return $ RawMethod mapbb locals stacks argscount codelen testCFG :: Code -> MapBB