diff --git a/src/objects.h b/src/objects.h index 8e4aa04b8a..5be622d782 100644 --- a/src/objects.h +++ b/src/objects.h @@ -5475,9 +5475,10 @@ class Code: public HeapObject { : public BitField {}; class KindField : public BitField {}; STATIC_ASSERT(NUMBER_OF_KINDS <= KindField::kMax); - class ExtraICStateField : public BitField {}; + class ExtraICStateField + : public BitField { + }; // KindSpecificFlags1 layout (STUB, BUILTIN and OPTIMIZED_FUNCTION) static const int kStackSlotsFirstBit = 0; diff --git a/src/utils.h b/src/utils.h index f95a136f96..a58439971f 100644 --- a/src/utils.h +++ b/src/utils.h @@ -305,8 +305,9 @@ class BitFieldBase { static T decode(U value) { return static_cast((value & kMask) >> shift); } -}; + STATIC_ASSERT((kNext - 1) / 8 < sizeof(U)); +}; template class BitField8 : public BitFieldBase {};