MIPS: convert compile-time checkable DCHECKs to STATIC_ASSERTs.
Port cc6c373e2a
BUG=
Review URL: https://codereview.chromium.org/867093003
Cr-Commit-Position: refs/heads/master@{#26248}
This commit is contained in:
parent
a18fdd61dc
commit
21a465607d
@ -3954,7 +3954,7 @@ void NameDictionaryLookupStub::GenerateNegativeLookup(MacroAssembler* masm,
|
||||
Smi::FromInt(name->Hash() + NameDictionary::GetProbeOffset(i))));
|
||||
|
||||
// Scale the index by multiplying by the entry size.
|
||||
DCHECK(NameDictionary::kEntrySize == 3);
|
||||
STATIC_ASSERT(NameDictionary::kEntrySize == 3);
|
||||
__ sll(at, index, 1);
|
||||
__ Addu(index, index, at);
|
||||
|
||||
|
@ -3993,7 +3993,7 @@ void NameDictionaryLookupStub::GenerateNegativeLookup(MacroAssembler* masm,
|
||||
Operand(name->Hash() + NameDictionary::GetProbeOffset(i)));
|
||||
|
||||
// Scale the index by multiplying by the entry size.
|
||||
DCHECK(NameDictionary::kEntrySize == 3);
|
||||
STATIC_ASSERT(NameDictionary::kEntrySize == 3);
|
||||
__ dsll(at, index, 1);
|
||||
__ Daddu(index, index, at); // index *= 3.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user