| 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..afca4ce47eff6501621def57c730777f5242fada 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -4768,17 +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);
|
| CallIC(ic, RelocInfo::CODE_TARGET, expr->CompareOperationFeedbackId());
|
| __ test(eax, eax);
|
|
|