| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index f54d4a5b0cd9b8faf260937b28726da3d81bfd33..ecbfc73646d675d7f43665234cb38dcd1ad38929 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -4584,9 +4584,7 @@ void LCodeGen::DoInteger32ToDouble(LInteger32ToDouble* instr) {
|
|
|
| void LCodeGen::DoInteger32ToSmi(LInteger32ToSmi* instr) {
|
| LOperand* input = instr->value();
|
| - ASSERT(input->IsRegister());
|
| LOperand* output = instr->result();
|
| - ASSERT(output->IsRegister());
|
| Register scratch = scratch0();
|
|
|
| __ SmiTagCheckOverflow(ToRegister(output), ToRegister(input), scratch);
|
| @@ -4607,6 +4605,19 @@ void LCodeGen::DoUint32ToDouble(LUint32ToDouble* instr) {
|
| }
|
|
|
|
|
| +void LCodeGen::DoUint32ToSmi(LUint32ToSmi* instr) {
|
| + LOperand* input = instr->value();
|
| + LOperand* output = instr->result();
|
| + if (!instr->hydrogen()->value()->HasRange() ||
|
| + !instr->hydrogen()->value()->range()->IsInSmiRange()) {
|
| + Register scratch = scratch0();
|
| + __ And(scratch, ToRegister(input), Operand(0xc0000000));
|
| + DeoptimizeIf(ne, instr->environment(), scratch, Operand(zero_reg));
|
| + }
|
| + __ SmiTag(ToRegister(output), ToRegister(input));
|
| +}
|
| +
|
| +
|
| void LCodeGen::DoNumberTagI(LNumberTagI* instr) {
|
| class DeferredNumberTagI V8_FINAL : public LDeferredCode {
|
| public:
|
|
|