Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 3c150e21c91d8abc494fdceed031b3801d0c0680..ae454fe2a63f7e7bbb993e9cb0315e61cae8f3e5 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -1606,7 +1606,8 @@ LInstruction* LChunkBuilder::DoAdd(HAdd* instr) { |
return result; |
} else if (instr->representation().IsExternal()) { |
DCHECK(instr->left()->representation().IsExternal()); |
- DCHECK(instr->right()->representation().IsInteger32()); |
+ DCHECK(instr->right()->representation().IsInteger32() || |
+ instr->right()->representation().IsTagged()); |
DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); |
bool use_lea = LAddI::UseLea(instr); |
LOperand* left = UseRegisterAtStart(instr->left()); |