# HG changeset patch # User Doug Simon # Date 1433361208 -7200 # Node ID a59a0c85650a171bf9e046d1079f6656f13ac500 # Parent 1c41d00e6b2ffb1ca886a7f95f87c1ae4613fcbc removed redundant definition of JVM opcodes diff -r 1c41d00e6b2f -r a59a0c85650a graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotConstantPool.java --- a/graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotConstantPool.java Wed Jun 03 21:42:01 2015 +0200 +++ b/graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotConstantPool.java Wed Jun 03 21:53:28 2015 +0200 @@ -27,6 +27,7 @@ import java.lang.invoke.*; +import com.oracle.graal.bytecode.*; import com.oracle.jvmci.common.*; import com.oracle.jvmci.meta.*; @@ -36,43 +37,6 @@ public class HotSpotConstantPool implements ConstantPool, HotSpotProxified { /** - * Subset of JVM bytecode opcodes used by {@link HotSpotConstantPool}. - */ - static class Bytecodes { - public static final int LDC = 18; // 0x12 - public static final int LDC_W = 19; // 0x13 - public static final int LDC2_W = 20; // 0x14 - public static final int GETSTATIC = 178; // 0xB2 - public static final int PUTSTATIC = 179; // 0xB3 - public static final int GETFIELD = 180; // 0xB4 - public static final int PUTFIELD = 181; // 0xB5 - public static final int INVOKEVIRTUAL = 182; // 0xB6 - public static final int INVOKESPECIAL = 183; // 0xB7 - public static final int INVOKESTATIC = 184; // 0xB8 - public static final int INVOKEINTERFACE = 185; // 0xB9 - public static final int INVOKEDYNAMIC = 186; // 0xBA - public static final int NEW = 187; // 0xBB - public static final int NEWARRAY = 188; // 0xBC - public static final int ANEWARRAY = 189; // 0xBD - public static final int CHECKCAST = 192; // 0xC0 - public static final int INSTANCEOF = 193; // 0xC1 - public static final int MULTIANEWARRAY = 197; // 0xC5 - - static boolean isInvoke(int opcode) { - switch (opcode) { - case INVOKEVIRTUAL: - case INVOKESPECIAL: - case INVOKESTATIC: - case INVOKEINTERFACE: - case INVOKEDYNAMIC: - return true; - default: - return false; - } - } - } - - /** * Enum of all {@code JVM_CONSTANT} constants used in the VM. This includes the public and * internal ones. */ diff -r 1c41d00e6b2f -r a59a0c85650a mx/suite.py --- a/mx/suite.py Wed Jun 03 21:42:01 2015 +0200 +++ b/mx/suite.py Wed Jun 03 21:53:28 2015 +0200 @@ -360,6 +360,7 @@ "com.oracle.jvmci.options", "com.oracle.jvmci.debug", "com.oracle.jvmci.runtime", + "com.oracle.jvmci.bytecode", "com.oracle.jvmci.common", "FINDBUGS", ],