diff options
author | Jesse Wilson <jessewilson@google.com> | 2011-02-22 20:20:36 -0800 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2011-02-23 13:30:36 -0800 |
commit | 3c6f4c012e0a314dc9f9f540b9374dbf530d03b0 (patch) | |
tree | a8b909adb787ca7847a1d181a9996a0bbf00c868 /vm/oo/Object.h | |
parent | 6c360b86f5774376140636ff60ad4af3814fef21 (diff) | |
download | android_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.h | 3 |
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; } |