diff options
author | 2018-05-10 08:22:46 +0100 | |
---|---|---|
committer | 2018-05-11 11:55:30 +0100 | |
commit | dbaa5c7ba8935cf87ceb40a4054f9842929e9a51 (patch) | |
tree | 5037625c80cb97a0e13026dc450db28e59ff72ca /runtime/entrypoints/entrypoint_utils.h | |
parent | 51dda39549033b3c50a7fce5522ffc81325db54b (diff) |
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
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.h')
-rw-r--r-- | runtime/entrypoints/entrypoint_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
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<mirror::Class> ResolveVerifyAndClinit(dex::TypeIndex type_idx, REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Roles::uninterruptible_); +ObjPtr<mirror::MethodHandle> ResolveMethodHandleFromCode(ArtMethod* referrer, + uint32_t method_handle_idx) + REQUIRES_SHARED(Locks::mutator_lock_) + REQUIRES(!Roles::uninterruptible_); + ObjPtr<mirror::MethodType> ResolveMethodTypeFromCode(ArtMethod* referrer, uint32_t proto_idx) REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Roles::uninterruptible_); |