oat file patching
Change-Id: Idbbdf19f3a77498d79d043fd33ca12ce39cafbb7
diff --git a/src/object.h b/src/object.h
index a609433..62d5fed 100644
--- a/src/object.h
+++ b/src/object.h
@@ -529,7 +529,11 @@
// Returns true if the method is static, private, or a constructor.
bool IsDirect() const {
- return IsStatic() || IsPrivate() || IsConstructor();
+ return IsDirect(GetAccessFlags());
+ }
+
+ static bool IsDirect(uint32_t access_flags) {
+ return (access_flags & (kAccStatic | kAccPrivate | kAccConstructor)) != 0;
}
// Returns true if the method is declared synchronized.