diff --git a/src/code-stubs.h b/src/code-stubs.h index f2de6166d3..55ebe219fd 100644 --- a/src/code-stubs.h +++ b/src/code-stubs.h @@ -245,6 +245,7 @@ class CodeStub BASE_EMBEDDED { MajorKeyBits::encode(MajorKey()); } + STATIC_ASSERT(NUMBER_OF_IDS < (1 << kStubMajorKeyBits)); class MajorKeyBits: public BitField {}; class MinorKeyBits: public BitField {}; // NOLINT diff --git a/src/objects.h b/src/objects.h index f09d58fc5d..cc77e1977d 100644 --- a/src/objects.h +++ b/src/objects.h @@ -311,7 +311,7 @@ static const ExtraICState kNoExtraICState = 0; // Instance size sentinel for objects of variable size. const int kVariableSizeSentinel = 0; -const int kStubMajorKeyBits = 6; +const int kStubMajorKeyBits = 7; const int kStubMinorKeyBits = kBitsPerInt - kSmiTagSize - kStubMajorKeyBits; // All Maps have a field instance_type containing a InstanceType. @@ -5484,7 +5484,7 @@ class Code: public HeapObject { static const int kStubMajorKeyFirstBit = kIsCrankshaftedBit + 1; static const int kSafepointTableOffsetFirstBit = kStubMajorKeyFirstBit + kStubMajorKeyBits; - static const int kSafepointTableOffsetBitCount = 25; + static const int kSafepointTableOffsetBitCount = 24; STATIC_ASSERT(kStubMajorKeyFirstBit + kStubMajorKeyBits <= 32); STATIC_ASSERT(kSafepointTableOffsetFirstBit +