| Index: src/ia32/code-stubs-ia32.cc
|
| diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
|
| index 66801742fdcdfa3b05e1af77fc4989bf25ba85fa..8490943dd173e3b11b81242583e236de8f45e7fa 100644
|
| --- a/src/ia32/code-stubs-ia32.cc
|
| +++ b/src/ia32/code-stubs-ia32.cc
|
| @@ -3973,11 +3973,11 @@ void NameDictionaryLookupStub::GenerateNegativeLookup(MacroAssembler* masm,
|
| NameDictionary::GetProbeOffset(i))));
|
|
|
| // Scale the index by multiplying by the entry size.
|
| - DCHECK(NameDictionary::kEntrySize == 3);
|
| + STATIC_ASSERT(NameDictionary::kEntrySize == 3);
|
| __ lea(index, Operand(index, index, times_2, 0)); // index *= 3.
|
| Register entity_name = r0;
|
| // Having undefined at this place means the name is not contained.
|
| - DCHECK_EQ(kSmiTagSize, 1);
|
| + STATIC_ASSERT(kSmiTagSize == 1);
|
| __ mov(entity_name, Operand(properties, index, times_half_pointer_size,
|
| kElementsStartOffset - kHeapObjectTag));
|
| __ cmp(entity_name, masm->isolate()->factory()->undefined_value());
|
| @@ -4045,7 +4045,7 @@ void NameDictionaryLookupStub::GeneratePositiveLookup(MacroAssembler* masm,
|
| __ and_(r0, r1);
|
|
|
| // Scale the index by multiplying by the entry size.
|
| - DCHECK(NameDictionary::kEntrySize == 3);
|
| + STATIC_ASSERT(NameDictionary::kEntrySize == 3);
|
| __ lea(r0, Operand(r0, r0, times_2, 0)); // r0 = r0 * 3
|
|
|
| // Check if the key is identical to the name.
|
| @@ -4108,11 +4108,11 @@ void NameDictionaryLookupStub::Generate(MacroAssembler* masm) {
|
| __ and_(scratch, Operand(esp, 0));
|
|
|
| // Scale the index by multiplying by the entry size.
|
| - DCHECK(NameDictionary::kEntrySize == 3);
|
| + STATIC_ASSERT(NameDictionary::kEntrySize == 3);
|
| __ lea(index(), Operand(scratch, scratch, times_2, 0)); // index *= 3.
|
|
|
| // Having undefined at this place means the name is not contained.
|
| - DCHECK_EQ(kSmiTagSize, 1);
|
| + STATIC_ASSERT(kSmiTagSize == 1);
|
| __ mov(scratch, Operand(dictionary(), index(), times_pointer_size,
|
| kElementsStartOffset - kHeapObjectTag));
|
| __ cmp(scratch, isolate()->factory()->undefined_value());
|
| @@ -4823,12 +4823,12 @@ static void CreateArrayDispatchOneArgument(MacroAssembler* masm,
|
| // esp[4] - 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.
|
| __ test_b(edx, 1);
|
|
|