|
78 | 78 |
|
79 | 79 | class CVTypeSectionBuilder { |
80 | 80 |
|
81 | | - // private static final String MAGIC_OBJECT_HEADER_TYPE = "_objhdr"; |
82 | | - // private static final String JAVA_LANG_CLASS = "java.lang.Class"; |
83 | 81 | private static final String JAVA_LANG_OBJECT = "java.lang.Object"; |
84 | 82 |
|
85 | 83 | private int objectHeaderRecordIndex; |
@@ -275,22 +273,6 @@ record = buildType(entry); |
275 | 273 | return ptrRecord.getSequenceNumber(); |
276 | 274 | } |
277 | 275 |
|
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 | | - |
294 | 276 | private int getIndexForType(TypeEntry entry) { |
295 | 277 | CVTypeRecord clsRecord = typeSection.getType(entry.getTypeName()); |
296 | 278 | if (clsRecord == null) { |
|
0 commit comments