Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeWithCPIndex.java @ 3838:6a991dcb52bb
7012081: JSR 292: SA-JDI can't read MH/MT/Indy ConstantPool entries
Reviewed-by: kvn, twisti, jrose
author | never |
---|---|
date | Thu, 21 Jul 2011 08:38:25 -0700 |
parents | 0a8e0d4345b3 |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
3837:43f9d800f276 | 3838:6a991dcb52bb |
---|---|
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 |