cache: add iload/istore sload/sstore opcodes

This commit is contained in:
Adam
2017-05-21 16:35:10 -04:00
parent 69bb4d97b2
commit 82fcdb9506
2 changed files with 8 additions and 4 deletions

View File

@@ -51,10 +51,10 @@ public class Instructions
add(27, 1, 0);
add(Opcodes.IF_ICMPLE, "if_icmple", 2, 0);
add(Opcodes.IF_ICMPGE, "if_icmpge", 2, 0);
add(33, 0, 1);
add(34, 1, 0);
add(35, 0, 0, 0, 1);
add(36, 0, 0, 1, 0);
add(Opcodes.ILOAD, "iload", 0, 1);
add(Opcodes.ISTORE, "istore", 1, 0);
add(Opcodes.SLOAD, "sload", 0, 0, 0, 1);
add(Opcodes.SSTORE, "sstore", 0, 0, 1, 0);
// 37 - pops strings eq to int operand, pushes 1 string
add(Opcodes.POP_INT, "pop_int", 1, 0);
add(Opcodes.POP_STRING, "pop_string", 0, 0, 1, 0);

View File

@@ -38,6 +38,10 @@ public class Opcodes
public static final int RETURN = 21;
public static final int IF_ICMPLE = 31;
public static final int IF_ICMPGE = 32;
public static final int ILOAD = 33;
public static final int ISTORE = 34;
public static final int SLOAD = 35;
public static final int SSTORE = 36;
public static final int POP_INT = 38;
public static final int POP_STRING = 39;
//public static final int INVOKE = 40;