summaryrefslogtreecommitdiff
path: root/src/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.h')
-rw-r--r--src/object.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/object.h b/src/object.h
index 4f32cf9cf8..abcf51f64b 100644
--- a/src/object.h
+++ b/src/object.h
@@ -868,10 +868,16 @@ class Class : public Object {
return GetStatus() >= kStatusResolved;
}
+ // Returns true if the class has been loaded.
bool IsLoaded() const {
return GetStatus() >= kStatusLoaded;
}
+ // Returns true if the class is initialized.
+ bool IsInitialized() const {
+ return GetStatus() == kStatusInitialized;
+ }
+
// Returns true if this class is in the same packages as that class.
bool IsInSamePackage(const Class* that) const;