Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index 6cfcd318382542a1b6b10dc16ceabc39c9f41ddf..c892f148e5f574293d486af0819655db1d0a27f2 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -710,9 +710,9 @@ LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) { |
LInstruction* LChunkBuilder::DoShift(Token::Value op, |
HBitwiseBinaryOperation* instr) { |
- if (instr->representation().IsTagged()) { |
- ASSERT(instr->left()->representation().IsTagged()); |
- ASSERT(instr->right()->representation().IsTagged()); |
+ if (instr->representation().IsSmiOrTagged()) { |
+ ASSERT(instr->left()->representation().IsSmiOrTagged()); |
+ ASSERT(instr->right()->representation().IsSmiOrTagged()); |
LOperand* left = UseFixed(instr->left(), r1); |
LOperand* right = UseFixed(instr->right(), r0); |
@@ -780,8 +780,8 @@ LInstruction* LChunkBuilder::DoArithmeticT(Token::Value op, |
op == Token::SUB); |
HValue* left = instr->left(); |
HValue* right = instr->right(); |
- ASSERT(left->representation().IsTagged()); |
- ASSERT(right->representation().IsTagged()); |
+ ASSERT(left->representation().IsSmiOrTagged()); |
+ ASSERT(right->representation().IsSmiOrTagged()); |
LOperand* left_operand = UseFixed(left, r1); |
LOperand* right_operand = UseFixed(right, r0); |
LArithmeticT* result = |
@@ -1303,9 +1303,9 @@ LInstruction* LChunkBuilder::DoBitwise(HBitwise* instr) { |
LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand()); |
return DefineAsRegister(new(zone()) LBitI(left, right)); |
} else { |
- ASSERT(instr->representation().IsTagged()); |
- ASSERT(instr->left()->representation().IsTagged()); |
- ASSERT(instr->right()->representation().IsTagged()); |
+ ASSERT(instr->representation().IsSmiOrTagged()); |
+ ASSERT(instr->left()->representation().IsSmiOrTagged()); |
+ ASSERT(instr->right()->representation().IsSmiOrTagged()); |
LOperand* left = UseFixed(instr->left(), r1); |
LOperand* right = UseFixed(instr->right(), r0); |
@@ -1459,7 +1459,7 @@ LInstruction* LChunkBuilder::DoMod(HMod* instr) { |
} else { |
return DefineAsRegister(mod); |
} |
- } else if (instr->representation().IsTagged()) { |
+ } else if (instr->representation().IsSmiOrTagged()) { |
return DoArithmeticT(Token::MOD, instr); |
} else { |
ASSERT(instr->representation().IsDouble()); |
@@ -1617,7 +1617,7 @@ LInstruction* LChunkBuilder::DoAdd(HAdd* instr) { |
return DoArithmeticD(Token::ADD, instr); |
} else { |
- ASSERT(instr->representation().IsTagged()); |
+ ASSERT(instr->representation().IsSmiOrTagged()); |
return DoArithmeticT(Token::ADD, instr); |
} |
} |
@@ -1889,12 +1889,6 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) { |
if (from.IsSmi()) { |
if (to.IsTagged()) { |
LOperand* value = UseRegister(instr->value()); |
- // For now, always deopt on hole. |
- if (instr->value()->IsLoadKeyed() && |
- HLoadKeyed::cast(instr->value())->UsesMustHandleHole()) { |
- return AssignEnvironment( |
- DefineSameAsFirst(new(zone()) LCheckSmiAndReturn(value))); |
- } |
return DefineSameAsFirst(new(zone()) LDummyUse(value)); |
} |
from = Representation::Tagged(); |
@@ -1920,13 +1914,6 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) { |
if (instr->value()->type().IsSmi()) { |
value = UseRegisterAtStart(instr->value()); |
res = DefineAsRegister(new(zone()) LSmiUntag(value, false)); |
- if (instr->value()->IsLoadKeyed()) { |
- HLoadKeyed* load_keyed = HLoadKeyed::cast(instr->value()); |
- if (load_keyed->UsesMustHandleHole() && |
- load_keyed->hole_mode() == NEVER_RETURN_HOLE) { |
- res = AssignEnvironment(res); |
- } |
- } |
} else { |
value = UseRegister(instr->value()); |
LOperand* temp1 = TempRegister(); |