Merge branch 'bytecode' of https://gitea.hb.dhbw-stuttgart.de/MisterChaos69/MiniJavaCompiler into bytecode
This commit is contained in:
commit
f9df24f456
@ -97,6 +97,7 @@ instance Serializable MemberInfo where
|
|||||||
++ concatMap serialize (memberAttributes member)
|
++ concatMap serialize (memberAttributes member)
|
||||||
|
|
||||||
instance Serializable Operation where
|
instance Serializable Operation where
|
||||||
|
<<<<<<< HEAD
|
||||||
serialize Opiadd = [0x60]
|
serialize Opiadd = [0x60]
|
||||||
serialize Opisub = [0x64]
|
serialize Opisub = [0x64]
|
||||||
serialize Opimul = [0x68]
|
serialize Opimul = [0x68]
|
||||||
@ -111,6 +112,22 @@ instance Serializable Operation where
|
|||||||
serialize (Opistore index) = [0xC4, 0x36] ++ unpackWord16 index
|
serialize (Opistore index) = [0xC4, 0x36] ++ unpackWord16 index
|
||||||
serialize (Opputfield index) = 0xB5 : unpackWord16 index
|
serialize (Opputfield index) = 0xB5 : unpackWord16 index
|
||||||
serialize (OpgetField index) = 0xB4 : unpackWord16 index
|
serialize (OpgetField index) = 0xB4 : unpackWord16 index
|
||||||
|
=======
|
||||||
|
serialize Iadd = [0x60]
|
||||||
|
serialize Isub = [0x64]
|
||||||
|
serialize Imul = [0x68]
|
||||||
|
serialize Idiv = [0x6C]
|
||||||
|
serialize Return = [0xB1]
|
||||||
|
serialize IReturn = [0xAC]
|
||||||
|
serialize (Sipush index) = 0x11 : unpackWord16 index
|
||||||
|
serialize (Ldc_w index) = 0x13 : unpackWord16 index
|
||||||
|
serialize (Aload index) = [0xC4, 0x19] ++ unpackWord16 index
|
||||||
|
serialize (Iload index) = [0xC4, 0x15] ++ unpackWord16 index
|
||||||
|
serialize (Astore index) = [0xC4, 0x3A] ++ unpackWord16 index
|
||||||
|
serialize (Istore index) = [0xC4, 0x36] ++ unpackWord16 index
|
||||||
|
serialize (Putfield index) = 0xB5 : unpackWord16 index
|
||||||
|
serialize (GetField index) = 0xB4 : unpackWord16 index
|
||||||
|
>>>>>>> 8b5650dd6104d1e350128fdcee37502d65824370
|
||||||
|
|
||||||
instance Serializable Attribute where
|
instance Serializable Attribute where
|
||||||
serialize (CodeAttribute { attributeMaxStack = maxStack,
|
serialize (CodeAttribute { attributeMaxStack = maxStack,
|
||||||
|
Loading…
Reference in New Issue
Block a user