summaryrefslogtreecommitdiff
path: root/runtime/art_method.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/art_method.h')
-rw-r--r--runtime/art_method.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/art_method.h b/runtime/art_method.h
index 078a978505..ec00a7b900 100644
--- a/runtime/art_method.h
+++ b/runtime/art_method.h
@@ -132,6 +132,14 @@ class ArtMethod FINAL {
return (GetAccessFlags() & kAccFinal) != 0;
}
+ bool IsCopied() {
+ const bool copied = (GetAccessFlags() & kAccCopied) != 0;
+ // (IsMiranda() || IsDefaultConflicting()) implies copied
+ DCHECK(!(IsMiranda() || IsDefaultConflicting()) || copied)
+ << "Miranda or default-conflict methods must always be copied.";
+ return copied;
+ }
+
bool IsMiranda() {
return (GetAccessFlags() & kAccMiranda) != 0;
}