Skip to content

Commit e24f4e9

Browse files
committed
fixes from PR review
1 parent 0ba638f commit e24f4e9

File tree

2 files changed

+4
-22
lines changed

2 files changed

+4
-22
lines changed

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVDebugInfo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public final class CVDebugInfo extends DebugInfoBase {
4343

4444
/* Register constants for Windows x86_64 */
4545
/* See AMD64ReservedRegisters.java. */
46-
public static final byte rheapbase_x86 = (byte) 14;
47-
public static final byte rthread_x86 = (byte) 15;
46+
public static final byte RHEAPBASE_X86 = (byte) 14;
47+
public static final byte RTHREAD_X86 = (byte) 15;
4848

4949
/**
5050
* Register used to hold the heap base.
@@ -60,8 +60,8 @@ public CVDebugInfo(PECoffMachine machine, ByteOrder byteOrder) {
6060
cvSymbolSection = new CVSymbolSectionImpl(this);
6161
cvTypeSection = new CVTypeSectionImpl();
6262
if (machine == PECoffMachine.X86_64) {
63-
this.heapbaseRegister = rheapbase_x86;
64-
this.threadRegister = rthread_x86;
63+
this.heapbaseRegister = RHEAPBASE_X86;
64+
this.threadRegister = RTHREAD_X86;
6565
} else {
6666
/* room for future aach64 port */
6767
throw GraalError.shouldNotReachHere("Unsupported architecture on Windows");

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVTypeSectionBuilder.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@
7878

7979
class CVTypeSectionBuilder {
8080

81-
// private static final String MAGIC_OBJECT_HEADER_TYPE = "_objhdr";
82-
// private static final String JAVA_LANG_CLASS = "java.lang.Class";
8381
private static final String JAVA_LANG_OBJECT = "java.lang.Object";
8482

8583
private int objectHeaderRecordIndex;
@@ -275,22 +273,6 @@ record = buildType(entry);
275273
return ptrRecord.getSequenceNumber();
276274
}
277275

278-
/**
279-
* If the type of the pointee is a primitive type, return it directly. Otherwise, create (if
280-
* needed) and return a record representing a pointer to class.
281-
*
282-
* private int getIndexForPointer(String typeName) { CVTypeRecord ptrRecord =
283-
* typeSection.getPointerRecordForType(typeName); if (ptrRecord == null) { CVTypeRecord
284-
* clsRecord = typeSection.getType(typeName); if (clsRecord == null) { /* we've never heard of
285-
* this class (but it may be in process) * clsRecord = addTypeRecord(new
286-
* CVTypeRecord.CVClassRecord((short) ATTR_FORWARD_REF, typeName, null));
287-
* typeInfoMap.put(typeName, new TypeInfo(clsRecord, null)); } else if
288-
* (clsRecord.getSequenceNumber() <= MAX_PRIMITIVE) { return clsRecord.getSequenceNumber(); } /*
289-
* We now have a class record but must create a pointer record. * ptrRecord = addTypeRecord(new
290-
* CVTypeRecord.CVTypePointerRecord(clsRecord.getSequenceNumber(),
291-
* CVTypeRecord.CVTypePointerRecord.NORMAL_64)); } return ptrRecord.getSequenceNumber(); }
292-
*/
293-
294276
private int getIndexForType(TypeEntry entry) {
295277
CVTypeRecord clsRecord = typeSection.getType(entry.getTypeName());
296278
if (clsRecord == null) {

0 commit comments

Comments
 (0)