summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-10-02 15:31:32 +0100
committer Vladimir Marko <vmarko@google.com> 2018-10-02 15:33:06 +0100
commitf02046e103f856a0766634886dedeed6a14f68d3 (patch)
treec173a1074c8df741f8409166eb1b6f0687e96153 /compiler/optimizing/nodes.h
parent8d72551de46efe5cd9ba2b5e43c845a10a6a0bce (diff)
Add packed bits check to HBoundsCheck.
Test: m Change-Id: If8581d6edc2649ea1a6a306e84cde23597a59b76
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index daf86fd8f2..218b447370 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -6140,6 +6140,9 @@ class HBoundsCheck final : public HExpression<2> {
private:
static constexpr size_t kFlagIsStringCharAt = kNumberOfGenericPackedBits;
+ static constexpr size_t kNumberOfBoundsCheckPackedBits = kFlagIsStringCharAt + 1;
+ static_assert(kNumberOfBoundsCheckPackedBits <= HInstruction::kMaxNumberOfPackedBits,
+ "Too many packed fields.");
};
class HSuspendCheck final : public HExpression<0> {