Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 7aff6e17c5b74a2bf54e54d80ea0f386e02482ea..c77faaad80e06a31c8e10b326bcbeff1465e9fbb 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -4768,18 +4768,14 @@ void FullCodeGenerator::EmitLiteralCompareNil(CompareOperation* expr, |
VisitForAccumulatorValue(sub_expr); |
PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
- EqualityKind kind = expr->op() == Token::EQ_STRICT |
- ? kStrictEquality : kNonStrictEquality; |
Handle<Object> nil_value = nil == kNullValue |
? isolate()->factory()->null_value() |
: isolate()->factory()->undefined_value(); |
- if (kind == kStrictEquality) { |
+ if (expr->op() == Token::EQ_STRICT) { |
__ cmp(eax, nil_value); |
Split(equal, if_true, if_false, fall_through); |
} else { |
- Handle<Code> ic = CompareNilICStub::GetUninitialized(isolate(), |
- kNonStrictEquality, |
- nil); |
+ Handle<Code> ic = CompareNilICStub::GetUninitialized(isolate(), nil); |
CallIC(ic, RelocInfo::CODE_TARGET, expr->CompareOperationFeedbackId()); |
__ test(eax, eax); |
Split(not_zero, if_true, if_false, fall_through); |