| Index: test/unittests/compiler/js-typed-lowering-unittest.cc
|
| diff --git a/test/unittests/compiler/js-typed-lowering-unittest.cc b/test/unittests/compiler/js-typed-lowering-unittest.cc
|
| index 9d713cf27bbca6df3247a34806d82db31a0bafbc..ddff92512be61d9e1ad35c0ab1afa96e68bc070f 100644
|
| --- a/test/unittests/compiler/js-typed-lowering-unittest.cc
|
| +++ b/test/unittests/compiler/js-typed-lowering-unittest.cc
|
| @@ -436,18 +436,27 @@ TEST_F(JSTypedLoweringTest, JSToNumberWithPlainPrimitive) {
|
| TEST_F(JSTypedLoweringTest, JSStrictEqualWithTheHole) {
|
| Node* const the_hole = HeapConstant(factory()->the_hole_value());
|
| Node* const context = UndefinedConstant();
|
| - Node* const effect = graph()->start();
|
| - Node* const control = graph()->start();
|
| TRACED_FOREACH(Type*, type, kJSTypes) {
|
| Node* const lhs = Parameter(type);
|
| - Reduction r = Reduce(graph()->NewNode(javascript()->StrictEqual(), lhs,
|
| - the_hole, context, effect, control));
|
| + Reduction r = Reduce(
|
| + graph()->NewNode(javascript()->StrictEqual(), lhs, the_hole, context));
|
| ASSERT_TRUE(r.Changed());
|
| EXPECT_THAT(r.replacement(), IsFalseConstant());
|
| }
|
| }
|
|
|
|
|
| +TEST_F(JSTypedLoweringTest, JSStrictEqualWithUnique) {
|
| + Node* const lhs = Parameter(Type::Unique(), 0);
|
| + Node* const rhs = Parameter(Type::Unique(), 1);
|
| + Node* const context = Parameter(Type::Any(), 2);
|
| + Reduction r =
|
| + Reduce(graph()->NewNode(javascript()->StrictEqual(), lhs, rhs, context));
|
| + ASSERT_TRUE(r.Changed());
|
| + EXPECT_THAT(r.replacement(), IsReferenceEqual(Type::Unique(), lhs, rhs));
|
| +}
|
| +
|
| +
|
| // -----------------------------------------------------------------------------
|
| // JSShiftLeft
|
|
|
|
|