| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index 3f30902e24c282ab141b6c44ab515ac1d2db9849..804c08e93b4176a2d92f7e65fa61ce079b20aa2e 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -1681,9 +1681,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());
|
| LOperand* left = UseRegisterOrConstantAtStart(instr->left());
|
| LOperand* right = UseRegisterOrConstantAtStart(instr->right());
|
| return new(zone()) LCmpIDAndBranch(left, right);
|
|
|