Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index 1703d4bcbf80127d17a094e669316bbfdb1139bb..be7c57c074bba793fee70e6681e4be0dabbdefe0 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -2457,8 +2457,8 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
// Find the code object based on the assumptions above. |
// kDataOneByteCodeOffset and kDataUC16CodeOffset are adjacent, adds an offset |
// of kPointerSize to reach the latter. |
- DCHECK_EQ(JSRegExp::kDataOneByteCodeOffset + kPointerSize, |
- JSRegExp::kDataUC16CodeOffset); |
+ STATIC_ASSERT(JSRegExp::kDataOneByteCodeOffset + kPointerSize == |
+ JSRegExp::kDataUC16CodeOffset); |
__ Mov(x10, kPointerSize); |
// We will need the encoding later: Latin1 = 0x04 |
// UC16 = 0x00 |
@@ -4947,7 +4947,7 @@ void NameDictionaryLookupStub::GeneratePositiveLookup( |
__ And(scratch2, scratch1, Operand(scratch2, LSR, Name::kHashShift)); |
// Scale the index by multiplying by the element size. |
- DCHECK(NameDictionary::kEntrySize == 3); |
+ STATIC_ASSERT(NameDictionary::kEntrySize == 3); |
__ Add(scratch2, scratch2, Operand(scratch2, LSL, 1)); |
// Check if the key is identical to the name. |
@@ -5016,7 +5016,7 @@ void NameDictionaryLookupStub::GenerateNegativeLookup(MacroAssembler* masm, |
__ And(index, index, name->Hash() + NameDictionary::GetProbeOffset(i)); |
// Scale the index by multiplying by the entry size. |
- DCHECK(NameDictionary::kEntrySize == 3); |
+ STATIC_ASSERT(NameDictionary::kEntrySize == 3); |
__ Add(index, index, Operand(index, LSL, 1)); // index *= 3. |
Register entity_name = scratch0; |
@@ -5107,7 +5107,7 @@ void NameDictionaryLookupStub::Generate(MacroAssembler* masm) { |
__ And(index, mask, Operand(index, LSR, Name::kHashShift)); |
// Scale the index by multiplying by the entry size. |
- DCHECK(NameDictionary::kEntrySize == 3); |
+ STATIC_ASSERT(NameDictionary::kEntrySize == 3); |
__ Add(index, index, Operand(index, LSL, 1)); // index *= 3. |
__ Add(index, dictionary, Operand(index, LSL, kPointerSizeLog2)); |