| Index: src/arm/lithium-codegen-arm.cc
|
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
|
| index 7f65023ed00827e58d8629af5a563327bd92f9d5..1e06f8b7557b61bc2b84f038253cabcf1d60bc2f 100644
|
| --- a/src/arm/lithium-codegen-arm.cc
|
| +++ b/src/arm/lithium-codegen-arm.cc
|
| @@ -4649,9 +4649,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());
|
| __ SmiTag(ToRegister(output), ToRegister(input), SetCC);
|
| if (!instr->hydrogen()->value()->HasRange() ||
|
| !instr->hydrogen()->value()->range()->IsInSmiRange()) {
|
| @@ -4670,6 +4668,18 @@ 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()) {
|
| + __ tst(ToRegister(input), Operand(0xc0000000));
|
| + DeoptimizeIf(ne, instr->environment());
|
| + }
|
| + __ SmiTag(ToRegister(output), ToRegister(input));
|
| +}
|
| +
|
| +
|
| void LCodeGen::DoNumberTagI(LNumberTagI* instr) {
|
| class DeferredNumberTagI V8_FINAL : public LDeferredCode {
|
| public:
|
|
|