Index: src/interpreter-irregexp.cc |
diff --git a/src/interpreter-irregexp.cc b/src/interpreter-irregexp.cc |
index 67010fda80c045ecc24c2eb4c61b6bc193a83dd7..626090e455785affb7db5ba4b02ffd6fe0b401b6 100644 |
--- a/src/interpreter-irregexp.cc |
+++ b/src/interpreter-irregexp.cc |
@@ -119,13 +119,13 @@ static void TraceInterpreter(const byte* code_base, |
static int32_t Load32Aligned(const byte* pc) { |
- ASSERT((reinterpret_cast<intptr_t>(pc) & 3) == 0); |
+ DCHECK((reinterpret_cast<intptr_t>(pc) & 3) == 0); |
return *reinterpret_cast<const int32_t *>(pc); |
} |
static int32_t Load16Aligned(const byte* pc) { |
- ASSERT((reinterpret_cast<intptr_t>(pc) & 1) == 0); |
+ DCHECK((reinterpret_cast<intptr_t>(pc) & 1) == 0); |
return *reinterpret_cast<const uint16_t *>(pc); |
} |
@@ -308,7 +308,7 @@ static RegExpImpl::IrregexpResult RawMatch(Isolate* isolate, |
break; |
} |
BYTECODE(LOAD_4_CURRENT_CHARS) { |
- ASSERT(sizeof(Char) == 1); |
+ DCHECK(sizeof(Char) == 1); |
int pos = current + (insn >> BYTECODE_SHIFT); |
if (pos + 4 > subject.length()) { |
pc = code_base + Load32Aligned(pc + 4); |
@@ -325,7 +325,7 @@ static RegExpImpl::IrregexpResult RawMatch(Isolate* isolate, |
break; |
} |
BYTECODE(LOAD_4_CURRENT_CHARS_UNCHECKED) { |
- ASSERT(sizeof(Char) == 1); |
+ DCHECK(sizeof(Char) == 1); |
int pos = current + (insn >> BYTECODE_SHIFT); |
Char next1 = subject[pos + 1]; |
Char next2 = subject[pos + 2]; |
@@ -580,7 +580,7 @@ RegExpImpl::IrregexpResult IrregexpInterpreter::Match( |
Handle<String> subject, |
int* registers, |
int start_position) { |
- ASSERT(subject->IsFlat()); |
+ DCHECK(subject->IsFlat()); |
DisallowHeapAllocation no_gc; |
const byte* code_base = code_array->GetDataStartAddress(); |
@@ -596,7 +596,7 @@ RegExpImpl::IrregexpResult IrregexpInterpreter::Match( |
start_position, |
previous_char); |
} else { |
- ASSERT(subject_content.IsTwoByte()); |
+ DCHECK(subject_content.IsTwoByte()); |
Vector<const uc16> subject_vector = subject_content.ToUC16Vector(); |
if (start_position != 0) previous_char = subject_vector[start_position - 1]; |
return RawMatch(isolate, |