refactor: store amount of arguments of a method in RawMethod
[mate.git] / Mate / Types.hs
index dbf7e73806cc3fe0a3fd1d7531474732f3475ba6..1f67aa6844cdedfeb69977f988407066af9c5dcb 100644 (file)
@@ -25,6 +25,11 @@ data BBEnd = Return | FallThrough BlockID | OneTarget BlockID | TwoTarget BlockI
 
 type MapBB = M.Map BlockID BasicBlock
 
+data RawMethod = RawMethod {
+  rawMapBB :: MapBB,
+  rawLocals :: Int,
+  rawStackSize :: Int,
+  rawArgCount :: Word32 }
 
 
 -- Word32 = point of method call in generated code