Skip to content

Commit c85961d

Browse files
committed
Remove ClassEntry#makePrimaryRange method
1 parent 9da008c commit c85961d

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/ClassEntry.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,4 @@ public boolean isPrimary() {
297297
public ClassEntry getSuperClass() {
298298
return superClass;
299299
}
300-
301-
public Range makePrimaryRange(String methodName, String symbolName, String paramSignature, String returnTypeName, StringTable stringTable, FileEntry primaryFileEntry, int lo,
302-
int hi, int primaryLine,
303-
int modifiers, boolean isDeoptTarget) {
304-
FileEntry fileEntryToUse = primaryFileEntry;
305-
if (fileEntryToUse == null) {
306-
/* Last chance is the class's file entry. */
307-
fileEntryToUse = this.fileEntry;
308-
}
309-
return new Range(this.typeName, methodName, symbolName, paramSignature, returnTypeName, stringTable, fileEntryToUse, lo, hi, primaryLine, modifiers, isDeoptTarget);
310-
}
311300
}

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/DebugInfoBase.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,10 @@ public void installDebugInfo(DebugInfoProvider debugInfoProvider) {
251251
/* Search for a method defining this primary range. */
252252
ClassEntry classEntry = ensureClassEntry(className);
253253
FileEntry fileEntry = ensureFileEntry(fileName, filePath, cachePath);
254-
Range primaryRange = classEntry.makePrimaryRange(methodName, symbolName, paramSignature, returnTypeName, stringTable, fileEntry, lo, hi, primaryLine, modifiers, isDeoptTarget);
254+
if (fileEntry == null) {
255+
fileEntry = classEntry.getFileEntry();
256+
}
257+
Range primaryRange = new Range(classEntry.getTypeName(), methodName, symbolName, paramSignature, returnTypeName, stringTable, fileEntry, lo, hi, primaryLine, modifiers, isDeoptTarget);
255258
debugContext.log(DebugContext.INFO_LEVEL, "PrimaryRange %s.%s %s %s:%d [0x%x, 0x%x]", className, methodName, filePath, fileName, primaryLine, lo, hi);
256259
classEntry.indexPrimary(primaryRange, debugCodeInfo.getFrameSizeChanges(), debugCodeInfo.getFrameSize());
257260
debugCodeInfo.lineInfoProvider().forEach(debugLineInfo -> {

0 commit comments

Comments
 (0)