Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index 71ce8f11a99afc680d80eddc0943b7b01700ce9b..3f47c0bcff2ce630e29964c06241b40b807b2e97 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -1671,6 +1671,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()); |