| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index df5da8fa5f63479cec1a1f2cfc388c3ace6e0f36..2b388c6b07888abeda754cfb0f02ad4406164e02 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -1476,7 +1476,7 @@ void RegExpExecStub::Generate(MacroAssembler* masm) {
|
| STATIC_ASSERT(kTwoByteStringTag == 0);
|
| __ And(a0, a0, Operand(kStringEncodingMask)); // Non-zero for one-byte.
|
| __ lw(t9, FieldMemOperand(regexp_data, JSRegExp::kDataOneByteCodeOffset));
|
| - __ sra(a3, a0, 2); // a3 is 1 for ASCII, 0 for UC16 (used below).
|
| + __ sra(a3, a0, 3); // a3 is 1 for ASCII, 0 for UC16 (used below).
|
| __ lw(t1, FieldMemOperand(regexp_data, JSRegExp::kDataUC16CodeOffset));
|
| __ Movz(t9, t1, a0); // If UC16 (a0 is 0), replace t9 w/kDataUC16CodeOffset.
|
|
|
|
|