Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index a1e892bb24354fa9de1f962bec853f9138cf16a3..8b422ec5526fe0c5b8e49b8af714628e1682c4d4 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -1667,6 +1667,15 @@ LInstruction* LChunkBuilder::DoAdd(HAdd* instr) { |
result = AssignEnvironment(result); |
} |
return result; |
+ } else if (instr->representation().IsExternal()) { |
+ ASSERT(instr->left()->representation().IsExternal()); |
+ ASSERT(instr->right()->representation().IsInteger32()); |
+ ASSERT(!instr->CheckFlag(HValue::kCanOverflow)); |
+ LOperand* left = UseRegisterAtStart(instr->left()); |
+ LOperand* right = UseOrConstantAtStart(instr->right()); |
+ LAddI* add = new(zone()) LAddI(left, right); |
+ LInstruction* result = DefineAsRegister(add); |
+ return result; |
} else if (instr->representation().IsDouble()) { |
if (instr->left()->IsMul()) { |
return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); |