| Index: src/mips64/code-stubs-mips64.cc
|
| diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc
|
| index 57b6c028fbed4f47197dfd9dd9ad77924b4dcd06..4ece267a99a126c7bd390c1f70b3f594b53e49bb 100644
|
| --- a/src/mips64/code-stubs-mips64.cc
|
| +++ b/src/mips64/code-stubs-mips64.cc
|
| @@ -4121,7 +4121,7 @@ void NameDictionaryLookupStub::GenerateNegativeLookup(MacroAssembler* masm,
|
|
|
| Register entity_name = scratch0;
|
| // Having undefined at this place means the name is not contained.
|
| - DCHECK_EQ(kSmiTagSize, 1);
|
| + STATIC_ASSERT(kSmiTagSize == 1);
|
| Register tmp = properties;
|
|
|
| __ dsll(scratch0, index, kPointerSizeLog2);
|
| @@ -4211,8 +4211,8 @@ void NameDictionaryLookupStub::GeneratePositiveLookup(MacroAssembler* masm,
|
| __ dsrl(scratch2, scratch2, Name::kHashShift);
|
| __ And(scratch2, scratch1, scratch2);
|
|
|
| - // Scale the index by multiplying by the element size.
|
| - DCHECK(NameDictionary::kEntrySize == 3);
|
| + // Scale the index by multiplying by the entry size.
|
| + STATIC_ASSERT(NameDictionary::kEntrySize == 3);
|
| // scratch2 = scratch2 * 3.
|
|
|
| __ dsll(at, scratch2, 1);
|
| @@ -4299,14 +4299,14 @@ void NameDictionaryLookupStub::Generate(MacroAssembler* masm) {
|
| __ And(index, mask, index);
|
|
|
| // Scale the index by multiplying by the entry size.
|
| - DCHECK(NameDictionary::kEntrySize == 3);
|
| + STATIC_ASSERT(NameDictionary::kEntrySize == 3);
|
| // index *= 3.
|
| __ mov(at, index);
|
| __ dsll(index, index, 1);
|
| __ Daddu(index, index, at);
|
|
|
|
|
| - DCHECK_EQ(kSmiTagSize, 1);
|
| + STATIC_ASSERT(kSmiTagSize == 1);
|
| __ dsll(index, index, kPointerSizeLog2);
|
| __ Daddu(index, index, dictionary);
|
| __ ld(entry_key, FieldMemOperand(index, kElementsStartOffset));
|
| @@ -5029,12 +5029,12 @@ static void CreateArrayDispatchOneArgument(MacroAssembler* masm,
|
| // sp[0] - last argument
|
| Label normal_sequence;
|
| if (mode == DONT_OVERRIDE) {
|
| - DCHECK(FAST_SMI_ELEMENTS == 0);
|
| - DCHECK(FAST_HOLEY_SMI_ELEMENTS == 1);
|
| - DCHECK(FAST_ELEMENTS == 2);
|
| - DCHECK(FAST_HOLEY_ELEMENTS == 3);
|
| - DCHECK(FAST_DOUBLE_ELEMENTS == 4);
|
| - DCHECK(FAST_HOLEY_DOUBLE_ELEMENTS == 5);
|
| + STATIC_ASSERT(FAST_SMI_ELEMENTS == 0);
|
| + STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == 1);
|
| + STATIC_ASSERT(FAST_ELEMENTS == 2);
|
| + STATIC_ASSERT(FAST_HOLEY_ELEMENTS == 3);
|
| + STATIC_ASSERT(FAST_DOUBLE_ELEMENTS == 4);
|
| + STATIC_ASSERT(FAST_HOLEY_DOUBLE_ELEMENTS == 5);
|
|
|
| // is the low bit set? If so, we are holey and that is good.
|
| __ And(at, a3, Operand(1));
|
|
|