diff options
author | 2023-03-03 09:16:24 +0000 | |
---|---|---|
committer | 2023-03-03 12:19:33 +0000 | |
commit | 1adb0de639204485836068d2b848eb54a8fcd709 (patch) | |
tree | 71a392cadb55011bc5ddb1d3fa69d5478c95c15f /compiler/optimizing/nodes.h | |
parent | 1fa1af38b8355020a98dd06cf2ad764597380eb0 (diff) |
Fix some bit field definitions in nodes.h.
Note that these fields were the last packed fields in their
instruction definitions, so the higher bits were unused and
always zero, therefore the erroneous bigger field size did
not cause any observable bugs.
Test: m test-art-host-test
Test: testrunner.py --host --optimizing
Change-Id: I2410fbb09d86f4d49a69b598748701d59860c55b
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 5854fa2fa5..965ee90036 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -3767,7 +3767,7 @@ class HClassTableGet final : public HExpression<1> { static constexpr size_t kNumberOfClassTableGetPackedBits = kFieldTableKind + kFieldTableKindSize; static_assert(kNumberOfClassTableGetPackedBits <= kMaxNumberOfPackedBits, "Too many packed fields."); - using TableKindField = BitField<TableKind, kFieldTableKind, kFieldTableKind>; + using TableKindField = BitField<TableKind, kFieldTableKind, kFieldTableKindSize>; // The index of the ArtMethod in the table. const size_t index_; @@ -5358,7 +5358,7 @@ class HNewArray final : public HExpression<2> { kFieldComponentSizeShift + kFieldComponentSizeShiftSize; static_assert(kNumberOfNewArrayPackedBits <= kMaxNumberOfPackedBits, "Too many packed fields."); using ComponentSizeShiftField = - BitField<size_t, kFieldComponentSizeShift, kFieldComponentSizeShift>; + BitField<size_t, kFieldComponentSizeShift, kFieldComponentSizeShiftSize>; }; class HAdd final : public HBinaryOperation { |