diff options
author | Vladimir Marko <vmarko@google.com> | 2021-01-28 14:58:35 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2021-01-29 13:20:38 +0000 |
commit | 42bee50518ebd23ff2107df86ed0a98737291cc2 (patch) | |
tree | 7659d86093b72c0da93141f5aa5f1e5637a4ce11 /compiler/optimizing/codegen_test_utils.h | |
parent | 2b84cf8a1dbc77df88fafec55ce5f45ff8778268 (diff) |
Clean up ClassLinker::LinkFields().
Move the function and its helper functions and classes to a
helper class ClassLinker::LinkFieldsHelper. Use field index
instead of `ArtField*` to make the sorted entries smaller
and avoid heap allocations for up to 64 fields (up from 16).
Avoid checking for "Ljava/lang/ref/Reference;" with costly
DescriptorEquals() after the early initialization is done.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: boots.
Bug: 175869411
Change-Id: Ice0a8abe2b85baffc40e1889f2f611eee3be34e8
Diffstat (limited to 'compiler/optimizing/codegen_test_utils.h')
0 files changed, 0 insertions, 0 deletions