| Index: src/regexp-macro-assembler-ia32.cc
|
| diff --git a/src/regexp-macro-assembler-ia32.cc b/src/regexp-macro-assembler-ia32.cc
|
| index 2a7bf3e76b41442fd863405eebcb0bee6e2fb9c9..02f445edce21b2c16077ed06829a502a0ef19a7a 100644
|
| --- a/src/regexp-macro-assembler-ia32.cc
|
| +++ b/src/regexp-macro-assembler-ia32.cc
|
| @@ -962,6 +962,8 @@ RegExpMacroAssemblerIA32::Result RegExpMacroAssemblerIA32::Match(
|
| int previous_index) {
|
|
|
| ASSERT(subject->IsFlat());
|
| + ASSERT(previous_index >= 0);
|
| + ASSERT(previous_index <= subject->length());
|
|
|
| // No allocations before calling the regexp, but we can't use
|
| // AssertNoAllocation, since regexps might be preempted, and another thread
|
|
|