4040import com .oracle .objectfile .debuginfo .DebugInfoProvider .DebugFrameSizeChange ;
4141import com .oracle .objectfile .debuginfo .DebugInfoProvider .DebugInstanceTypeInfo ;
4242import com .oracle .objectfile .debuginfo .DebugInfoProvider .DebugMethodInfo ;
43+ import com .oracle .objectfile .debuginfo .DebugInfoProvider .DebugRangeInfo ;
4344import com .oracle .objectfile .debuginfo .DebugInfoProvider .DebugTypeInfo ;
4445import com .oracle .objectfile .debuginfo .DebugInfoProvider .DebugTypeInfo .DebugTypeKind ;
4546
@@ -99,7 +100,8 @@ public ClassEntry(String className, FileEntry fileEntry, int size) {
99100 this .fileEntry = fileEntry ;
100101 // methods is a sorted list and we want to be able to add more elements to it while keeping
101102 // it sorted,
102- // so a LinkedList seems more appropriate than an ArrayList. (see getMethodEntry)
103+ // so a LinkedList seems more appropriate than an ArrayList.
104+ // (see ensureMethodEntryForDebugRangeInfo)
103105 this .methods = new LinkedList <>();
104106 this .primaryEntries = new ArrayList <>();
105107 this .primaryIndex = new HashMap <>();
@@ -345,11 +347,11 @@ public ClassEntry getSuperClass() {
345347 return superClass ;
346348 }
347349
348- public MethodEntry getMethodEntry ( DebugMethodInfo debugMethodInfo , DebugInfoBase debugInfoBase , DebugContext debugContext ) {
350+ public MethodEntry ensureMethodEntryForDebugRangeInfo ( DebugRangeInfo debugRangeInfo , DebugInfoBase debugInfoBase , DebugContext debugContext ) {
349351 assert listIsSorted (methods );
350- String methodName = debugInfoBase .uniqueDebugString (debugMethodInfo .name ());
351- String paramSignature = debugMethodInfo .paramSignature ();
352- String returnTypeName = debugMethodInfo .valueType ();
352+ String methodName = debugInfoBase .uniqueDebugString (debugRangeInfo .name ());
353+ String paramSignature = debugRangeInfo .paramSignature ();
354+ String returnTypeName = debugRangeInfo .valueType ();
353355 ListIterator <MethodEntry > methodIterator = methods .listIterator ();
354356 while (methodIterator .hasNext ()) {
355357 MethodEntry methodEntry = methodIterator .next ();
@@ -362,7 +364,7 @@ public MethodEntry getMethodEntry(DebugMethodInfo debugMethodInfo, DebugInfoBase
362364 break ;
363365 }
364366 }
365- MethodEntry newMethodEntry = processMethod (debugMethodInfo , debugInfoBase , debugContext , true );
367+ MethodEntry newMethodEntry = processMethod (debugRangeInfo , debugInfoBase , debugContext , true );
366368 methodIterator .add (newMethodEntry );
367369 return newMethodEntry ;
368370 }
0 commit comments