summaryrefslogtreecommitdiff
path: root/disassembler/disassembler.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2021-06-08 16:00:05 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2021-12-20 12:01:43 +0000
commitc8d57bec6249f3222e5f05f8f7e46baf06865ffe (patch)
tree1211916b37ddc8b45686b01998b017a4c0bb58c3 /disassembler/disassembler.h
parentf6e919d8845da10bba3ca6723e317845c349dd39 (diff)
Faster Class::FindField().
Change `Class::FindField()` to take dex cache and type index arguments instead of strings and optimize it similarly to `Class::FindClassMethod()`, namely search by indexes when possible (except when searching interfaces where we only add a TODO comment for now) and avoid `strlen()` calls for ASCII names and type descriptors. Update `ClassLinker::FindResolvedFieldJLS()` to pass the new arguments and replace all other `Class::FindField()` calls with more direct calls as we know the classes where those fields are defined. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 181943478 (cherry picked from commit e300c4e4eabe3388b730efe35561e54f1c306710) Merged-In: Iba798819043eb1b53b0dbc41ef8d7fd1c5d2164d Change-Id: Id904f403b3ebbf494bfe252961bb0dc639a37f1b
Diffstat (limited to 'disassembler/disassembler.h')
0 files changed, 0 insertions, 0 deletions