diff options
author | 2024-05-06 14:43:54 +0200 | |
---|---|---|
committer | 2024-05-09 07:12:59 +0000 | |
commit | 8e4b50a62ddb7ecfecb3e0caf3cab9f0e35eee76 (patch) | |
tree | 70bdb03cba6a1ad3b9c0fb0cccba657e0fbbd398 /compiler/optimizing/codegen_test_utils.h | |
parent | 488413f47e7552d067edf9cfd5ceda321fc12f88 (diff) |
Clean up `RegTypeCache::FromDescriptor()` arguments.
Only tests passed `true` as `precise` and most of them do
not really care about that anyway. For the two that do, we
implement a helper function to get a precise `j.l.Object`
reference type the way we would get it for `new Object()`.
Remove the `precise` argument and change the `ClassLoader`
argument to `Handle<>` (also for other functions) to avoid
unnecessary `Handle<>` decoding and re-encoding.
Also clean up `RegTypeCache:From()` which has only one
non-test caller, namely `RegTypeCache::FromDescriptor()`.
Make it private and similarly remove the `precise` argument.
Change tests to use `FromDescriptor()` instead.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: Iab68aea975ec57899d74c728130ece852a810ae7
Diffstat (limited to 'compiler/optimizing/codegen_test_utils.h')
0 files changed, 0 insertions, 0 deletions