Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 7bdfcd92ad7aff11fd4c912df80eb68a85a31240..62308c6b4dc1af6c2560dd0cc3724c825663f699 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -4089,7 +4089,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; |
__ sll(scratch0, index, 1); |
__ Addu(tmp, properties, scratch0); |
@@ -4179,7 +4179,7 @@ void NameDictionaryLookupStub::GeneratePositiveLookup(MacroAssembler* masm, |
__ And(scratch2, scratch1, scratch2); |
// Scale the index by multiplying by the element size. |
- DCHECK(NameDictionary::kEntrySize == 3); |
+ STATIC_ASSERT(NameDictionary::kEntrySize == 3); |
// scratch2 = scratch2 * 3. |
__ sll(at, scratch2, 1); |
@@ -4266,14 +4266,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); |
__ sll(index, index, 1); |
__ Addu(index, index, at); |
- DCHECK_EQ(kSmiTagSize, 1); |
+ STATIC_ASSERT(kSmiTagSize == 1); |
__ sll(index, index, 2); |
__ Addu(index, index, dictionary); |
__ lw(entry_key, FieldMemOperand(index, kElementsStartOffset)); |
@@ -4997,12 +4997,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)); |