Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 954f34cfa05f3c21bbd97289ac96f4bf944eec28..1d85be8a4e8b44b3dfa1a8ad69669e716b4c1592 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -2304,10 +2304,11 @@ void LCodeGen::DoCmpObjectEqAndBranch(LCmpObjectEqAndBranch* instr) { |
int true_block = chunk_->LookupDestination(instr->true_block_id()); |
if (instr->right()->IsConstantOperand()) { |
- __ cmp(left, ToHandle(LConstantOperand::cast(instr->right()))); |
+ Handle<Object> right = ToHandle(LConstantOperand::cast(instr->right())); |
+ __ CmpObject(left, right); |
} else { |
Operand right = ToOperand(instr->right()); |
- __ cmp(left, Operand(right)); |
+ __ cmp(left, right); |
} |
EmitBranch(true_block, false_block, equal); |
} |