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 5c43189601e1ddc919a46e4f7ef4a97737e62ef0..41717d63549bbcf05f2b67685d743ab4122c1c5c 100644 |
--- a/test/unittests/compiler/js-typed-lowering-unittest.cc |
+++ b/test/unittests/compiler/js-typed-lowering-unittest.cc |
@@ -523,17 +523,15 @@ TEST_F(JSTypedLoweringTest, JSLoadContext) { |
static bool kBooleans[] = {false, true}; |
TRACED_FOREACH(size_t, index, kIndices) { |
TRACED_FOREACH(bool, immutable, kBooleans) { |
- Reduction const r1 = Reduce( |
- graph()->NewNode(javascript()->LoadContext(0, index, immutable), |
- context, context, effect)); |
+ Reduction const r1 = Reduce(graph()->NewNode( |
+ javascript()->LoadContext(0, index, immutable), context, effect)); |
ASSERT_TRUE(r1.Changed()); |
EXPECT_THAT(r1.replacement(), |
IsLoadField(AccessBuilder::ForContextSlot(index), context, |
effect, graph()->start())); |
- Reduction const r2 = Reduce( |
- graph()->NewNode(javascript()->LoadContext(1, index, immutable), |
- context, context, effect)); |
+ Reduction const r2 = Reduce(graph()->NewNode( |
+ javascript()->LoadContext(1, index, immutable), context, effect)); |
ASSERT_TRUE(r2.Changed()); |
EXPECT_THAT(r2.replacement(), |
IsLoadField(AccessBuilder::ForContextSlot(index), |
@@ -559,16 +557,16 @@ TEST_F(JSTypedLoweringTest, JSStoreContext) { |
Node* const value = Parameter(type); |
Reduction const r1 = |
- Reduce(graph()->NewNode(javascript()->StoreContext(0, index), context, |
- value, context, effect, control)); |
+ Reduce(graph()->NewNode(javascript()->StoreContext(0, index), value, |
+ context, effect, control)); |
ASSERT_TRUE(r1.Changed()); |
EXPECT_THAT(r1.replacement(), |
IsStoreField(AccessBuilder::ForContextSlot(index), context, |
value, effect, control)); |
Reduction const r2 = |
- Reduce(graph()->NewNode(javascript()->StoreContext(1, index), context, |
- value, context, effect, control)); |
+ Reduce(graph()->NewNode(javascript()->StoreContext(1, index), value, |
+ context, effect, control)); |
ASSERT_TRUE(r2.Changed()); |
EXPECT_THAT(r2.replacement(), |
IsStoreField(AccessBuilder::ForContextSlot(index), |