163 } 164 System.err.println("Requested bci " + bci); 165 for (; bp != null; bp = bp.getNext()) { 166 System.err.println("Breakpoint at bci " + bp.getBCI() + ", bytecode " + 167 bp.getOrigBytecode()); 168 } 169 Assert.that(false, "Should not reach here"); 170 return -1; // not reached 171 } 172 173 public byte getBytecodeByteArg(int bci) { 174 return getConstMethod().getBytecodeByteArg(bci); 175 } 176 177 /** Fetches a 16-bit big-endian ("Java ordered") value from the 178 bytecode stream */ 179 public short getBytecodeShortArg(int bci) { 180 return getConstMethod().getBytecodeShortArg(bci); 181 } 182 183 /** Fetches a 32-bit big-endian ("Java ordered") value from the 184 bytecode stream */ 185 public int getBytecodeIntArg(int bci) { 186 return getConstMethod().getBytecodeIntArg(bci); 187 } 188 189 public byte[] getByteCode() { 190 return getConstMethod().getByteCode(); 191 } 192 193 /* 194 public Address getCode() { return codeField.getValue(this); } 195 public Address getInterpreterEntry() { return interpreterEntryField.getValue(this); } 196 public Address getFromCompiledCodeEntryPoint() { return fromCompiledCodeEntryPointField.getValue(this); } 197 */ 198 // Accessors 199 public Symbol getName() { return getConstants().getSymbolAt(getNameIndex()); } 200 public Symbol getSignature() { return getConstants().getSymbolAt(getSignatureIndex()); } 201 public Symbol getGenericSignature() { 202 long index = getGenericSignatureIndex(); 203 return (index != 0L) ? getConstants().getSymbolAt(index) : null; 204 } 205 206 // Method holder (the Klass holding this method) 207 public Klass getMethodHolder() { return getConstants().getPoolHolder(); } 208 | 163 } 164 System.err.println("Requested bci " + bci); 165 for (; bp != null; bp = bp.getNext()) { 166 System.err.println("Breakpoint at bci " + bp.getBCI() + ", bytecode " + 167 bp.getOrigBytecode()); 168 } 169 Assert.that(false, "Should not reach here"); 170 return -1; // not reached 171 } 172 173 public byte getBytecodeByteArg(int bci) { 174 return getConstMethod().getBytecodeByteArg(bci); 175 } 176 177 /** Fetches a 16-bit big-endian ("Java ordered") value from the 178 bytecode stream */ 179 public short getBytecodeShortArg(int bci) { 180 return getConstMethod().getBytecodeShortArg(bci); 181 } 182 183 /** Fetches a 16-bit native ordered value from the 184 bytecode stream */ 185 public short getNativeShortArg(int bci) { 186 return getConstMethod().getNativeShortArg(bci); 187 } 188 189 /** Fetches a 32-bit big-endian ("Java ordered") value from the 190 bytecode stream */ 191 public int getBytecodeIntArg(int bci) { 192 return getConstMethod().getBytecodeIntArg(bci); 193 } 194 195 /** Fetches a 32-bit native ordered value from the 196 bytecode stream */ 197 public int getNativeIntArg(int bci) { 198 return getConstMethod().getNativeIntArg(bci); 199 } 200 201 public byte[] getByteCode() { 202 return getConstMethod().getByteCode(); 203 } 204 205 /* 206 public Address getCode() { return codeField.getValue(this); } 207 public Address getInterpreterEntry() { return interpreterEntryField.getValue(this); } 208 public Address getFromCompiledCodeEntryPoint() { return fromCompiledCodeEntryPointField.getValue(this); } 209 */ 210 // Accessors 211 public Symbol getName() { return getConstants().getSymbolAt(getNameIndex()); } 212 public Symbol getSignature() { return getConstants().getSymbolAt(getSignatureIndex()); } 213 public Symbol getGenericSignature() { 214 long index = getGenericSignatureIndex(); 215 return (index != 0L) ? getConstants().getSymbolAt(index) : null; 216 } 217 218 // Method holder (the Klass holding this method) 219 public Klass getMethodHolder() { return getConstants().getPoolHolder(); } 220 |