< prev index next >
src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.meta/src/jdk/vm/ci/meta/LocalVariableTable.java
Print this page
*** 45,55 ****
this.locals = locals;
}
/**
* Gets a description of a local variable that occupies the bytecode frame slot indexed by
! * {@code slot} and is live at the bytecode index {@code bci}
*
* @return a description of the requested local variable or null if no such variable matches
* {@code slot} and {@code bci}
*/
public Local getLocal(int slot, int bci) {
--- 45,55 ----
this.locals = locals;
}
/**
* Gets a description of a local variable that occupies the bytecode frame slot indexed by
! * {@code slot} and is live at the bytecode index {@code bci}.
*
* @return a description of the requested local variable or null if no such variable matches
* {@code slot} and {@code bci}
*/
public Local getLocal(int slot, int bci) {
*** 72,82 ****
public Local[] getLocals() {
return locals.clone();
}
/**
! * Gets a description of all the local variables live at the bytecode index {@code bci}
*/
public Local[] getLocalsAt(int bci) {
List<Local> result = new ArrayList<>();
for (Local l : locals) {
if (l.getStartBCI() <= bci && bci <= l.getEndBCI()) {
--- 72,82 ----
public Local[] getLocals() {
return locals.clone();
}
/**
! * Gets a description of all the local variables live at the bytecode index {@code bci}.
*/
public Local[] getLocalsAt(int bci) {
List<Local> result = new ArrayList<>();
for (Local l : locals) {
if (l.getStartBCI() <= bci && bci <= l.getEndBCI()) {
< prev index next >