| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index e28eb7ab582703fdb70ab2b6478cebfab3cd0e0e..47afeb4330a4c8a2514501be78d3e3c8efdaa04f 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -2969,7 +2969,7 @@ void RegExpExecStub::Generate(MacroAssembler* masm) {
|
| // Check that the RegExp has been compiled (data contains a fixed array).
|
| __ lw(regexp_data, FieldMemOperand(a0, JSRegExp::kDataOffset));
|
| if (FLAG_debug_code) {
|
| - __ And(t0, regexp_data, Operand(kSmiTagMask));
|
| + __ SmiTst(regexp_data, t0);
|
| __ Check(nz,
|
| kUnexpectedTypeForRegExpDataFixedArrayExpected,
|
| t0,
|
| @@ -6164,7 +6164,7 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) {
|
| // Initial map for the builtin Array function should be a map.
|
| __ lw(a3, FieldMemOperand(a1, JSFunction::kPrototypeOrInitialMapOffset));
|
| // Will both indicate a NULL and a Smi.
|
| - __ And(at, a3, Operand(kSmiTagMask));
|
| + __ SmiTst(a3, at);
|
| __ Assert(ne, kUnexpectedInitialMapForArrayFunction,
|
| at, Operand(zero_reg));
|
| __ GetObjectType(a3, a3, t0);
|
| @@ -6253,7 +6253,7 @@ void InternalArrayConstructorStub::Generate(MacroAssembler* masm) {
|
| // Initial map for the builtin Array function should be a map.
|
| __ lw(a3, FieldMemOperand(a1, JSFunction::kPrototypeOrInitialMapOffset));
|
| // Will both indicate a NULL and a Smi.
|
| - __ And(at, a3, Operand(kSmiTagMask));
|
| + __ SmiTst(a3, at);
|
| __ Assert(ne, kUnexpectedInitialMapForArrayFunction,
|
| at, Operand(zero_reg));
|
| __ GetObjectType(a3, a3, t0);
|
|
|