summaryrefslogtreecommitdiff
path: root/compiler/exception_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-11-07 09:24:50 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2024-11-08 11:39:26 +0000
commit8cbf793d000b2598dbb3be58fb8f3288543cd7a4 (patch)
treee19f0038c9d3af367314fc76cdb4cec4d7eb37cc /compiler/exception_test.cc
parentf8ac417533d9ebee6d02ad84a1e6a6b056e6720d (diff)
Introduce `RegType::Kind`.
Define the enumeration of all concrete `RegType` subclasses and store that "kind" as a member `RegType`. Replace virtual `Is##kind()` functions with a simple check of that member. This allows the compiler to better optimize the code and also avoid difficult to predict indirect jumps. Rename some concrete `RegType` subclasses to align naming with the `Is##kind()` functions. Rename `Is##kind()` for `UnresolvedAndUninitialized*` to drop the `And`. Remove redunant `IsLong()` and `IsDouble()` and use the equivalent `IsLongLo()` and `IsDoubleLo()`, respectively. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 181943478 Change-Id: Ib075809b4244687cce1848c0d087e97e6f51cc98
Diffstat (limited to 'compiler/exception_test.cc')
0 files changed, 0 insertions, 0 deletions