Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index d4b9ff23274f6533dfb121ef8e861bae52afc1f7..6ea0aed60c0c457af8a6460358f6151904c61c66 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -4867,8 +4867,8 @@ void FullCodeGenerator::EmitLiteralCompareNil(CompareOperation* expr, |
} else { |
Handle<Code> ic = CompareNilICStub::GetUninitialized(isolate(), nil); |
CallIC(ic, expr->CompareOperationFeedbackId()); |
- __ test(eax, eax); |
- Split(not_zero, if_true, if_false, fall_through); |
+ __ cmp(eax, isolate()->factory()->true_value()); |
+ Split(equal, if_true, if_false, fall_through); |
} |
context()->Plug(if_true, if_false); |
} |