summaryrefslogtreecommitdiffstats
path: root/runtime/mirror/method_handle_impl.cc
diff options
context:
space:
mode:
authorOrion Hodson <oth@google.com>2016-10-13 10:25:54 +0100
committerOrion Hodson <oth@google.com>2016-12-02 10:09:40 +0000
commitcfa325e4ca65603fdb03a836a6cb394d23ed511f (patch)
treef14e628cc90f7b03f8f227a30361993f3f594f11 /runtime/mirror/method_handle_impl.cc
parent35b6546b0a4fe423ed6f27d8c5b709d5191e99ef (diff)
downloadart-cfa325e4ca65603fdb03a836a6cb394d23ed511f.tar.gz
art-cfa325e4ca65603fdb03a836a6cb394d23ed511f.tar.bz2
art-cfa325e4ca65603fdb03a836a6cb394d23ed511f.zip
ART: Add verifier support for invoke-polymorphic.
Change-Id: I1e1860cad80db46320c3ef5a9eaceb7529ea68d7 Bug: 30550796,33099829,33191712 Test: make test-art-host
Diffstat (limited to 'runtime/mirror/method_handle_impl.cc')
-rw-r--r--runtime/mirror/method_handle_impl.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/mirror/method_handle_impl.cc b/runtime/mirror/method_handle_impl.cc
index fdfaaa8ca8..4f1c448b56 100644
--- a/runtime/mirror/method_handle_impl.cc
+++ b/runtime/mirror/method_handle_impl.cc
@@ -22,6 +22,12 @@
namespace art {
namespace mirror {
+mirror::Class* MethodHandle::StaticClass() {
+ mirror::Class* klass = MethodHandleImpl::StaticClass()->GetSuperClass();
+ DCHECK(klass->DescriptorEquals("Ljava/lang/invoke/MethodHandle;"));
+ return klass;
+}
+
GcRoot<mirror::Class> MethodHandleImpl::static_class_;
void MethodHandleImpl::SetClass(Class* klass) {