本文整理匯總了Java中jdk.vm.ci.meta.LineNumberTable類的典型用法代碼示例。如果您正苦於以下問題:Java LineNumberTable類的具體用法?Java LineNumberTable怎麽用?Java LineNumberTable使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
LineNumberTable類屬於jdk.vm.ci.meta包,在下文中一共展示了LineNumberTable類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getLineNumberTable
import jdk.vm.ci.meta.LineNumberTable; //導入依賴的package包/類
@Override
public LineNumberTable getLineNumberTable() {
if (lineNumberTableBytes == null) {
return null;
}
final int lineNumberTableLength = lineNumberTableBytes.length / LINE_NUMBER_TABLE_ENTRY_SIZE_IN_BYTES;
DataInputStream stream = new DataInputStream(new ByteArrayInputStream(lineNumberTableBytes));
int[] bci = new int[lineNumberTableLength];
int[] line = new int[lineNumberTableLength];
for (int i = 0; i < lineNumberTableLength; i++) {
try {
bci[i] = stream.readUnsignedShort();
line[i] = stream.readUnsignedShort();
} catch (IOException e) {
throw new GraalError(e);
}
}
return new LineNumberTable(line, bci);
}
示例2: getLineNumberTable
import jdk.vm.ci.meta.LineNumberTable; //導入依賴的package包/類
@Override
public LineNumberTable getLineNumberTable() {
final boolean hasLineNumberTable = (getConstMethodFlags() & config().constMethodHasLineNumberTable) != 0;
if (!hasLineNumberTable) {
return null;
}
long[] values = compilerToVM().getLineNumberTable(this);
if (values == null || values.length == 0) {
// Empty table so treat is as non-existent
return null;
}
assert values.length % 2 == 0;
int[] bci = new int[values.length / 2];
int[] line = new int[values.length / 2];
for (int i = 0; i < values.length / 2; i++) {
bci[i] = (int) values[i * 2];
line[i] = (int) values[i * 2 + 1];
}
return new LineNumberTable(line, bci);
}
示例3: getLineNumberTable
import jdk.vm.ci.meta.LineNumberTable; //導入依賴的package包/類
@Override
public LineNumberTable getLineNumberTable() {
final boolean hasLineNumberTable = (getConstMethodFlags() & config().constMethodHasLineNumberTable) != 0;
if (!hasLineNumberTable) {
return null;
}
long[] values = compilerToVM().getLineNumberTable(this);
if (values == null || values.length == 0) {
// Empty table so treat is as non-existent
return null;
}
assert values.length % 2 == 0;
int[] bci = new int[values.length / 2];
int[] line = new int[values.length / 2];
for (int i = 0; i < values.length / 2; i++) {
bci[i] = (int) values[i * 2];
line[i] = (int) values[i * 2 + 1];
}
return new LineNumberTableImpl(line, bci);
}
示例4: getLineNumberTable
import jdk.vm.ci.meta.LineNumberTable; //導入依賴的package包/類
@Override
public LineNumberTable getLineNumberTable() {
return method.getLineNumberTable();
}
示例5: getLineNumberTable
import jdk.vm.ci.meta.LineNumberTable; //導入依賴的package包/類
LineNumberTable getLineNumberTable();