hotspot/agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeWithCPIndex.java
changeset 10251 71b8938a2821
parent 7662 5f31baaff55b
child 13728 882756847a04
equal deleted inserted replaced
10250:0794cd144834 10251:71b8938a2821
    33   BytecodeWithCPIndex(Method method, int bci) {
    33   BytecodeWithCPIndex(Method method, int bci) {
    34     super(method, bci);
    34     super(method, bci);
    35   }
    35   }
    36 
    36 
    37   // the constant pool index for this bytecode
    37   // the constant pool index for this bytecode
    38   public int index() { return 0xFFFF & javaShortAt(1); }
    38   public int index() { return getIndexU2(code(), false); }
    39 
    39 
    40   public int getSecondaryIndex() {
    40   public int getSecondaryIndex() {
    41      throw new IllegalArgumentException("must be invokedynamic");
    41      throw new IllegalArgumentException("must be invokedynamic");
    42   }
    42   }
    43 
    43