convert compile-time checkable DCHECKs to STATIC_ASSERTs
Review URL: https://codereview.chromium.org/768683006 Cr-Commit-Position: refs/heads/master@{#26187}
This commit is contained in:
parent
c6641e138b
commit
cc6c373e2a
@ -3744,7 +3744,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);
|
||||
__ add(index, index, Operand(index, LSL, 1)); // index *= 3.
|
||||
|
||||
Register entity_name = scratch0;
|
||||
|
@ -702,7 +702,7 @@ HValue* CodeStubGraphBuilder<KeyedLoadSloppyArgumentsStub>::BuildCodeStub() {
|
||||
// smi check is being emitted.
|
||||
HValue* the_context = Add<HLoadKeyed>(elements, graph()->GetConstant0(),
|
||||
nullptr, FAST_ELEMENTS);
|
||||
DCHECK(Context::kHeaderSize == FixedArray::kHeaderSize);
|
||||
STATIC_ASSERT(Context::kHeaderSize == FixedArray::kHeaderSize);
|
||||
HValue* result = Add<HLoadKeyed>(the_context, mapped_index, nullptr,
|
||||
FAST_ELEMENTS, ALLOW_RETURN_HOLE);
|
||||
environment()->Push(result);
|
||||
|
Loading…
Reference in New Issue
Block a user