summaryrefslogtreecommitdiff
path: root/runtime/art_method.h
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2017-02-13 16:36:06 -0800
committer Alex Light <allight@google.com> 2017-02-21 09:49:44 -0800
commit7532d58afabda43b03bb30a06d1a448428aaebbf (patch)
tree7fdc83741b78670bef07357a6125786ece73f532 /runtime/art_method.h
parent6a669aac63ffc17b5e903aa4a1f285fe338eadcf (diff)
Allow redefined intrinsics
We make a change to allow intrinsics to be redefined. Note that redefined intrinisics will no-longer be optimized as much and will not be inlined or moved out of loops. Test: ART_TEST_JIT=true mma -j40 test-art-host Change-Id: Id6df89bb247d21f7859b48356ceba310eef9d105
Diffstat (limited to 'runtime/art_method.h')
-rw-r--r--runtime/art_method.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/art_method.h b/runtime/art_method.h
index 3d51fdde94..99d7a49dc9 100644
--- a/runtime/art_method.h
+++ b/runtime/art_method.h
@@ -223,13 +223,10 @@ class ArtMethod FINAL {
}
bool IsObsolete() {
- // TODO Should maybe make this IsIntrinsic check not needed
- return !IsIntrinsic() && (GetAccessFlags() & kAccObsoleteMethod) != 0;
+ return (GetAccessFlags() & kAccObsoleteMethod) != 0;
}
void SetIsObsolete() {
- // TODO We should really support redefining intrinsic if possible.
- DCHECK(!IsIntrinsic());
AddAccessFlags(kAccObsoleteMethod);
}