Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index db1cb956edc75f64fdf6249ef0c25fe1e8f20bdc..94e8773a165fbc6ae9d9a967ac0b93cb785dbf3d 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -2943,16 +2943,8 @@ void CompareNilIC::Clear(Address address, Code* target) { |
} |
-MaybeObject* CompareNilIC::DoCompareNilSlow(EqualityKind kind, |
- NilValue nil, |
+MaybeObject* CompareNilIC::DoCompareNilSlow(NilValue nil, |
Handle<Object> object) { |
- if (kind == kStrictEquality) { |
- if (nil == kNullValue) { |
- return Smi::FromInt(object->IsNull()); |
- } else { |
- return Smi::FromInt(object->IsUndefined()); |
- } |
- } |
if (object->IsNull() || object->IsUndefined()) { |
return Smi::FromInt(true); |
} |
@@ -2973,7 +2965,6 @@ MaybeObject* CompareNilIC::CompareNil(Handle<Object> object) { |
stub.Record(object); |
old_types.TraceTransition(stub.GetTypes()); |
- EqualityKind kind = stub.GetKind(); |
NilValue nil = stub.GetNilValue(); |
// Find or create the specialized stub to support the new set of types. |
@@ -2987,7 +2978,7 @@ MaybeObject* CompareNilIC::CompareNil(Handle<Object> object) { |
code = stub.GetCode(isolate()); |
} |
set_target(*code); |
- return DoCompareNilSlow(kind, nil, object); |
+ return DoCompareNilSlow(nil, object); |
} |