codegen: map each real PC to java bytecode PC
[mate.git] / Mate / MethodPool.hs-boot
index 7efca9c6f1e0ac5c423caa8e1bf2531c71ecb9db..e55aab8b654717e1b3e92f0079a2601f57bd60bf 100644 (file)
@@ -2,14 +2,14 @@
 {-# LANGUAGE ForeignFunctionInterface #-}
 module Mate.MethodPool where
 
-import Data.Binary
 import qualified Data.ByteString.Lazy as B
 
 import Mate.Types
+import Mate.NativeSizes
 import Foreign.C.Types
 
 
-addMethodRef :: Word32 -> MethodInfo -> [B.ByteString] -> IO ()
-compileBB :: RawMethod -> MethodInfo -> IO Word32
-executeFuncPtr :: Word32 -> IO ()
-getMethodEntry :: CPtrdiff -> CPtrdiff -> IO CPtrdiff
+addMethodRef :: (NativeWord, JpcNpcMap) -> MethodInfo -> [B.ByteString] -> IO ()
+compileBB :: RawMethod -> MethodInfo -> IO (NativeWord, JpcNpcMap)
+executeFuncPtr :: NativeWord -> IO ()
+getMethodEntry :: MethodInfo -> IO (CPtrdiff, JpcNpcMap)