| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index aa56d7298e6900d00241bfceaf808076f6a0e2a1..f7b083ec6bb7fd43c3e16d91cdbaf2dcba4c2859 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -409,7 +409,7 @@ Register LCodeGen::EmitLoadRegister(LOperand* op, Register scratch) {
|
| } else if (r.IsDouble()) {
|
| Abort(kEmitLoadRegisterUnsupportedDoubleImmediate);
|
| } else {
|
| - ASSERT(r.IsTagged());
|
| + ASSERT(r.IsSmiOrTagged());
|
| __ LoadObject(scratch, literal);
|
| }
|
| return scratch;
|
| @@ -1398,10 +1398,7 @@ void LCodeGen::DoMulI(LMulI* instr) {
|
| instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero);
|
|
|
| if (right_op->IsConstantOperand() && !can_overflow) {
|
| - // Use optimized code for specific constants.
|
| - int32_t constant = ToRepresentation(
|
| - LConstantOperand::cast(right_op),
|
| - instr->hydrogen()->right()->representation());
|
| + int32_t constant = ToInteger32(LConstantOperand::cast(right_op));
|
|
|
| if (bailout_on_minus_zero && (constant < 0)) {
|
| // The case of a null constant will be handled separately.
|
|
|