| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index 2d72687d31c77c25cb6a39869cbcf0731e635bc0..0e697f57d9998714cf04b3e856cbbb211f20e431 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -1676,7 +1676,10 @@ LInstruction* LChunkBuilder::DoAdd(HAdd* instr) {
|
| return result;
|
| } else if (instr->representation().IsExternal()) {
|
| DCHECK(instr->left()->representation().IsExternal());
|
| - DCHECK(instr->right()->representation().IsInteger32());
|
| + DCHECK((instr->external_add_type() == AddOfExternalAndInt32 &&
|
| + instr->right()->representation().IsInteger32()) ||
|
| + (instr->external_add_type() == AddOfExternalAndTagged &&
|
| + instr->right()->representation().IsTagged()));
|
| DCHECK(!instr->CheckFlag(HValue::kCanOverflow));
|
| LOperand* left = UseRegisterAtStart(instr->left());
|
| LOperand* right = UseOrConstantAtStart(instr->right());
|
|
|