Increase number of available major keys.
This also adds a static assert checking that we do not exceed the available number of major keys. The safepoint table offset is now max 2^24 instead of 2^25. R=hpayer@chromium.org Review URL: https://codereview.chromium.org/110183003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18284 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
28c557dd5b
commit
f0cfb1cad9
@ -245,6 +245,7 @@ class CodeStub BASE_EMBEDDED {
|
||||
MajorKeyBits::encode(MajorKey());
|
||||
}
|
||||
|
||||
STATIC_ASSERT(NUMBER_OF_IDS < (1 << kStubMajorKeyBits));
|
||||
class MajorKeyBits: public BitField<uint32_t, 0, kStubMajorKeyBits> {};
|
||||
class MinorKeyBits: public BitField<uint32_t,
|
||||
kStubMajorKeyBits, kStubMinorKeyBits> {}; // NOLINT
|
||||
|
@ -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 +
|
||||
|
Loading…
Reference in New Issue
Block a user