Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 2ac50c1eff8226995fbef2b92a65360849e79e8a..d65ec1c88373f6de43a25f40fa0625248c1cbf6c 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -3908,12 +3908,12 @@ void NameDictionaryLookupStub::GenerateNegativeLookup(MacroAssembler* masm, |
Immediate(name->Hash() + NameDictionary::GetProbeOffset(i))); |
// Scale the index by multiplying by the entry size. |
- DCHECK(NameDictionary::kEntrySize == 3); |
+ STATIC_ASSERT(NameDictionary::kEntrySize == 3); |
__ leap(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); |
__ movp(entity_name, Operand(properties, |
index, |
times_pointer_size, |
@@ -3979,7 +3979,7 @@ void NameDictionaryLookupStub::GeneratePositiveLookup(MacroAssembler* masm, |
__ andp(r1, r0); |
// Scale the index by multiplying by the entry size. |
- DCHECK(NameDictionary::kEntrySize == 3); |
+ STATIC_ASSERT(NameDictionary::kEntrySize == 3); |
__ leap(r1, Operand(r1, r1, times_2, 0)); // r1 = r1 * 3 |
// Check if the key is identical to the name. |
@@ -4041,7 +4041,7 @@ void NameDictionaryLookupStub::Generate(MacroAssembler* masm) { |
__ andp(scratch, Operand(rsp, 0)); |
// Scale the index by multiplying by the entry size. |
- DCHECK(NameDictionary::kEntrySize == 3); |
+ STATIC_ASSERT(NameDictionary::kEntrySize == 3); |
__ leap(index(), Operand(scratch, scratch, times_2, 0)); // index *= 3. |
// Having undefined at this place means the name is not contained. |
@@ -4738,12 +4738,12 @@ static void CreateArrayDispatchOneArgument(MacroAssembler* masm, |
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. |
__ testb(rdx, Immediate(1)); |