Mercurial > hg > graal-jvmci-8
comparison agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeWideable.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 | c18cbe5936b8 |
children |
comparison
equal
deleted
inserted
replaced
3837:43f9d800f276 | 3838:6a991dcb52bb |
---|---|
36 return (prevBci > -1 && method.getBytecodeOrBPAt(prevBci) == Bytecodes._wide); | 36 return (prevBci > -1 && method.getBytecodeOrBPAt(prevBci) == Bytecodes._wide); |
37 } | 37 } |
38 | 38 |
39 // the local variable index | 39 // the local variable index |
40 public int getLocalVarIndex() { | 40 public int getLocalVarIndex() { |
41 return (isWide()) ? (int) (0xFFFF & javaShortAt(1)) | 41 return (isWide()) ? getIndexU2(code(), true) : getIndexU1(); |
42 : (int) (0xFF & javaByteAt(1)); | |
43 } | 42 } |
44 } | 43 } |