summaryrefslogtreecommitdiffstats
path: root/vm/oo/Object.h
diff options
context:
space:
mode:
authorJesse Wilson <jessewilson@google.com>2011-02-22 20:20:36 -0800
committerJesse Wilson <jessewilson@google.com>2011-02-23 13:30:36 -0800
commit3c6f4c012e0a314dc9f9f540b9374dbf530d03b0 (patch)
treea8b909adb787ca7847a1d181a9996a0bbf00c868 /vm/oo/Object.h
parent6c360b86f5774376140636ff60ad4af3814fef21 (diff)
downloadandroid_dalvik-3c6f4c012e0a314dc9f9f540b9374dbf530d03b0.tar.gz
android_dalvik-3c6f4c012e0a314dc9f9f540b9374dbf530d03b0.tar.bz2
android_dalvik-3c6f4c012e0a314dc9f9f540b9374dbf530d03b0.zip
Optimize Class.getMethod() by loading only one method.
Change-Id: Ia2cd776c0a14914264e8d94e978d55854ed75623 http://b/3431686
Diffstat (limited to 'vm/oo/Object.h')
-rw-r--r--vm/oo/Object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm/oo/Object.h b/vm/oo/Object.h
index 4fc0e5ca5..fd37da0ae 100644
--- a/vm/oo/Object.h
+++ b/vm/oo/Object.h
@@ -710,6 +710,9 @@ INLINE bool dvmIsNativeMethod(const Method* method) {
INLINE bool dvmIsAbstractMethod(const Method* method) {
return (method->accessFlags & ACC_ABSTRACT) != 0;
}
+INLINE bool dvmIsSyntheticMethod(const Method* method) {
+ return (method->accessFlags & ACC_SYNTHETIC) != 0;
+}
INLINE bool dvmIsMirandaMethod(const Method* method) {
return (method->accessFlags & ACC_MIRANDA) != 0;
}