diff options
author | 2025-02-26 18:19:29 +0000 | |
---|---|---|
committer | 2025-02-27 10:51:40 -0800 | |
commit | 12f7d1eb0ff3fe0126d8dadd6bbfa8b797718e9c (patch) | |
tree | 02c4ac57b6a3ab39c2a36ac8f031e1562751859d /runtime/mirror/class.h | |
parent | 6d9c6c00c78afb2e5d37f8c1b47b0a4e8772356e (diff) |
Fast field lookup in nterp.
Only increase the hotness if we fail the fast lookup.
Test: test.py
Change-Id: I4526181eda83b3648383788738deaf71418de825
Diffstat (limited to 'runtime/mirror/class.h')
-rw-r--r-- | runtime/mirror/class.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/mirror/class.h b/runtime/mirror/class.h index 9a45a73e72..6e72a41592 100644 --- a/runtime/mirror/class.h +++ b/runtime/mirror/class.h @@ -1123,6 +1123,9 @@ class EXPORT MANAGED Class final : public Object { ArtField* FindDeclaredField(ObjPtr<DexCache> dex_cache, uint32_t dex_field_idx) REQUIRES_SHARED(Locks::mutator_lock_); + ArtField* FindDeclaredField(uint32_t dex_field_idx) + REQUIRES_SHARED(Locks::mutator_lock_); + ArtField* FindDeclaredField(std::string_view name, std::string_view type) REQUIRES_SHARED(Locks::mutator_lock_); |