Chromium Code Reviews| Index: src/ia32/lithium-ia32.cc |
| diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
| index 2f9f4bcd04995a109ec147aeb840de979a23719e..6e9838906bcb36a345308d24179a39e249091936 100644 |
| --- a/src/ia32/lithium-ia32.cc |
| +++ b/src/ia32/lithium-ia32.cc |
| @@ -1689,9 +1689,9 @@ 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->right()->representation().IsSmiOrInteger32()); |
|
Jakob Kummerow
2013/05/28 09:00:54
I think ASSERT(instr->right()->representation().Eq
|
| LOperand* left = UseRegisterOrConstantAtStart(instr->left()); |
| LOperand* right = UseOrConstantAtStart(instr->right()); |
| return new(zone()) LCmpIDAndBranch(left, right); |