Commit 21a46560 authored by balazs.kilvady's avatar balazs.kilvady Committed by Commit bot

MIPS: convert compile-time checkable DCHECKs to STATIC_ASSERTs.

Port cc6c373e

BUG=

Review URL: https://codereview.chromium.org/867093003

Cr-Commit-Position: refs/heads/master@{#26248}
parent a18fdd61
...@@ -3954,7 +3954,7 @@ void NameDictionaryLookupStub::GenerateNegativeLookup(MacroAssembler* masm, ...@@ -3954,7 +3954,7 @@ void NameDictionaryLookupStub::GenerateNegativeLookup(MacroAssembler* masm,
Smi::FromInt(name->Hash() + NameDictionary::GetProbeOffset(i)))); Smi::FromInt(name->Hash() + NameDictionary::GetProbeOffset(i))));
// Scale the index by multiplying by the entry size. // Scale the index by multiplying by the entry size.
DCHECK(NameDictionary::kEntrySize == 3); STATIC_ASSERT(NameDictionary::kEntrySize == 3);
__ sll(at, index, 1); __ sll(at, index, 1);
__ Addu(index, index, at); __ Addu(index, index, at);
......
...@@ -3993,7 +3993,7 @@ void NameDictionaryLookupStub::GenerateNegativeLookup(MacroAssembler* masm, ...@@ -3993,7 +3993,7 @@ void NameDictionaryLookupStub::GenerateNegativeLookup(MacroAssembler* masm,
Operand(name->Hash() + NameDictionary::GetProbeOffset(i))); Operand(name->Hash() + NameDictionary::GetProbeOffset(i)));
// Scale the index by multiplying by the entry size. // Scale the index by multiplying by the entry size.
DCHECK(NameDictionary::kEntrySize == 3); STATIC_ASSERT(NameDictionary::kEntrySize == 3);
__ dsll(at, index, 1); __ dsll(at, index, 1);
__ Daddu(index, index, at); // index *= 3. __ Daddu(index, index, at); // index *= 3.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment