Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index 3f30902e24c282ab141b6c44ab515ac1d2db9849..2ad6eb46b4b3fc6f34e4df6726ef2bcf1cf96a77 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -1681,9 +1681,10 @@ LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
LInstruction* LChunkBuilder::DoCompareIDAndBranch( |
HCompareIDAndBranch* instr) { |
Representation r = instr->representation(); |
- if (r.IsInteger32()) { |
- ASSERT(instr->left()->representation().IsInteger32()); |
- ASSERT(instr->right()->representation().IsInteger32()); |
+ if (r.IsSmiOrInteger32()) { |
+ ASSERT(instr->left()->representation().IsSmiOrInteger32()); |
+ ASSERT(instr->left()->representation().Equals( |
+ instr->right()->representation())); |
LOperand* left = UseRegisterOrConstantAtStart(instr->left()); |
LOperand* right = UseRegisterOrConstantAtStart(instr->right()); |
return new(zone()) LCmpIDAndBranch(left, right); |