325 public ObjArray getTransitiveInterfaces() { return (ObjArray) transitiveInterfaces.getValue(this); }
326 public TypeArray getFields() { return (TypeArray) fields.getValue(this); }
327 public int getJavaFieldsCount() { return (int) javaFieldsCount.getValue(this); }
328 public int getAllFieldsCount() {
329 int len = (int)getFields().getLength();
330 int allFieldsCount = 0;
331 for (; allFieldsCount*FIELD_SLOTS < len; allFieldsCount++) {
332 short flags = getFieldAccessFlags(allFieldsCount);
333 AccessFlags access = new AccessFlags(flags);
334 if (access.fieldHasGenericSignature()) {
335 len --;
336 }
337 }
338 return allFieldsCount;
339 }
340 public ConstantPool getConstants() { return (ConstantPool) constants.getValue(this); }
341 public Oop getClassLoader() { return classLoader.getValue(this); }
342 public Oop getProtectionDomain() { return protectionDomain.getValue(this); }
343 public ObjArray getSigners() { return (ObjArray) signers.getValue(this); }
344 public Symbol getSourceFileName() { return getSymbol(sourceFileName); }
345 public Symbol getSourceDebugExtension(){ return getSymbol(sourceDebugExtension); }
346 public TypeArray getInnerClasses() { return (TypeArray) innerClasses.getValue(this); }
347 public long getNonstaticFieldSize() { return nonstaticFieldSize.getValue(this); }
348 public long getStaticOopFieldCount() { return staticOopFieldCount.getValue(this); }
349 public long getNonstaticOopMapSize() { return nonstaticOopMapSize.getValue(this); }
350 public boolean getIsMarkedDependent() { return isMarkedDependent.getValue(this) != 0; }
351 public long getVtableLen() { return vtableLen.getValue(this); }
352 public long getItableLen() { return itableLen.getValue(this); }
353 public Symbol getGenericSignature() { return getSymbol(genericSignature); }
354 public long majorVersion() { return majorVersion.getValue(this); }
355 public long minorVersion() { return minorVersion.getValue(this); }
356
357 // "size helper" == instance size in words
358 public long getSizeHelper() {
359 int lh = getLayoutHelper();
360 if (Assert.ASSERTS_ENABLED) {
361 Assert.that(lh > 0, "layout helper initialized for instance class");
362 }
363 return lh / VM.getVM().getAddressSize();
364 }
365
|
325 public ObjArray getTransitiveInterfaces() { return (ObjArray) transitiveInterfaces.getValue(this); }
326 public TypeArray getFields() { return (TypeArray) fields.getValue(this); }
327 public int getJavaFieldsCount() { return (int) javaFieldsCount.getValue(this); }
328 public int getAllFieldsCount() {
329 int len = (int)getFields().getLength();
330 int allFieldsCount = 0;
331 for (; allFieldsCount*FIELD_SLOTS < len; allFieldsCount++) {
332 short flags = getFieldAccessFlags(allFieldsCount);
333 AccessFlags access = new AccessFlags(flags);
334 if (access.fieldHasGenericSignature()) {
335 len --;
336 }
337 }
338 return allFieldsCount;
339 }
340 public ConstantPool getConstants() { return (ConstantPool) constants.getValue(this); }
341 public Oop getClassLoader() { return classLoader.getValue(this); }
342 public Oop getProtectionDomain() { return protectionDomain.getValue(this); }
343 public ObjArray getSigners() { return (ObjArray) signers.getValue(this); }
344 public Symbol getSourceFileName() { return getSymbol(sourceFileName); }
345 public String getSourceDebugExtension(){ return CStringUtilities.getString(sourceDebugExtension.getValue(getHandle())); }
346 public TypeArray getInnerClasses() { return (TypeArray) innerClasses.getValue(this); }
347 public long getNonstaticFieldSize() { return nonstaticFieldSize.getValue(this); }
348 public long getStaticOopFieldCount() { return staticOopFieldCount.getValue(this); }
349 public long getNonstaticOopMapSize() { return nonstaticOopMapSize.getValue(this); }
350 public boolean getIsMarkedDependent() { return isMarkedDependent.getValue(this) != 0; }
351 public long getVtableLen() { return vtableLen.getValue(this); }
352 public long getItableLen() { return itableLen.getValue(this); }
353 public Symbol getGenericSignature() { return getSymbol(genericSignature); }
354 public long majorVersion() { return majorVersion.getValue(this); }
355 public long minorVersion() { return minorVersion.getValue(this); }
356
357 // "size helper" == instance size in words
358 public long getSizeHelper() {
359 int lh = getLayoutHelper();
360 if (Assert.ASSERTS_ENABLED) {
361 Assert.that(lh > 0, "layout helper initialized for instance class");
362 }
363 return lh / VM.getVM().getAddressSize();
364 }
365
|