From dbaa5c7ba8935cf87ceb40a4054f9842929e9a51 Mon Sep 17 00:00:00 2001 From: Orion Hodson Date: Thu, 10 May 2018 08:22:46 +0100 Subject: ART: Compiler support for const-method-handle Implemented as a runtime call. Bug: 66890674 Test: art/test.py --target -r -t 979 Test: art/test.py --target --64 -r -t 979 Test: art/test.py --host -r -t 979 Change-Id: I67f461c819a7d528d7455afda8b4a59e9aed381c --- runtime/entrypoints/entrypoint_utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/entrypoints/entrypoint_utils.h') diff --git a/runtime/entrypoints/entrypoint_utils.h b/runtime/entrypoints/entrypoint_utils.h index 203ff3d031..0a3b5dfc93 100644 --- a/runtime/entrypoints/entrypoint_utils.h +++ b/runtime/entrypoints/entrypoint_utils.h @@ -34,6 +34,7 @@ namespace art { namespace mirror { class Array; class Class; +class MethodHandle; class MethodType; class Object; class String; @@ -152,6 +153,11 @@ inline ObjPtr ResolveVerifyAndClinit(dex::TypeIndex type_idx, REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Roles::uninterruptible_); +ObjPtr ResolveMethodHandleFromCode(ArtMethod* referrer, + uint32_t method_handle_idx) + REQUIRES_SHARED(Locks::mutator_lock_) + REQUIRES(!Roles::uninterruptible_); + ObjPtr ResolveMethodTypeFromCode(ArtMethod* referrer, uint32_t proto_idx) REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Roles::uninterruptible_); -- cgit v1.2.3-59-g8ed1b