Index: src/ppc/code-stubs-ppc.cc |
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc |
index c18f0f7d79365c4ab4c68284c3959191bd6e73cb..d232b834b81cdf6fafb2949e5afb81209040260b 100644 |
--- a/src/ppc/code-stubs-ppc.cc |
+++ b/src/ppc/code-stubs-ppc.cc |
@@ -4212,7 +4212,7 @@ void NameDictionaryLookupStub::GeneratePositiveLookup( |
__ 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. |
__ ShiftLeftImm(ip, scratch2, Operand(1)); |
__ add(scratch2, scratch2, ip); |
@@ -4301,7 +4301,7 @@ void NameDictionaryLookupStub::Generate(MacroAssembler* masm) { |
__ and_(index, mask, r0); |
// Scale the index by multiplying by the entry size. |
- DCHECK(NameDictionary::kEntrySize == 3); |
+ STATIC_ASSERT(NameDictionary::kEntrySize == 3); |
__ ShiftLeftImm(scratch, index, Operand(1)); |
__ add(index, index, scratch); // index *= 3. |
@@ -5040,12 +5040,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. |
__ andi(r0, r6, Operand(1)); |