Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index 22adc2a2b4d263d8ed399a5343b0422446c5c4c1..9a99d2487885f7c8973a721fe630827f387d9fb9 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -1554,9 +1554,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); |