Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 53d7027764d6a8ab742bc8eea30b2d6aeceaa06d..e9fe2a8cd2fdb2f87f07dc62a1c2d952dd3a4bf6 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -4754,18 +4754,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; |
- if (kind == kStrictEquality) { |
+ if (expr->op() == Token::EQ_STRICT) { |
Heap::RootListIndex nil_value = nil == kNullValue ? |
Heap::kNullValueRootIndex : |
Heap::kUndefinedValueRootIndex; |
__ CompareRoot(rax, 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()); |
__ testq(rax, rax); |
Split(not_zero, if_true, if_false, fall_through); |