diff options
Diffstat (limited to 'src/object.h')
| -rw-r--r-- | src/object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object.h b/src/object.h index e787933744..9ad02a852d 100644 --- a/src/object.h +++ b/src/object.h @@ -1676,7 +1676,7 @@ class MANAGED Class : public StaticStorageBase { SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, iftable_), new_iftable, false); } - // Get instance fields + // Get instance fields of the class (See also GetSFields). ObjectArray<Field>* GetIFields() const { DCHECK(IsLoaded() || IsErroneous()); return GetFieldObject<ObjectArray<Field>*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), false); @@ -1751,6 +1751,7 @@ class MANAGED Class : public StaticStorageBase { SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num, false); } + // Gets the static fields of the class. ObjectArray<Field>* GetSFields() const { DCHECK(IsLoaded() || IsErroneous()); return GetFieldObject<ObjectArray<Field>*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), false); |