diff options
Diffstat (limited to 'deps/v8/test/unittests/compiler/effect-control-linearizer-unittest.cc')
-rw-r--r-- | deps/v8/test/unittests/compiler/effect-control-linearizer-unittest.cc | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/deps/v8/test/unittests/compiler/effect-control-linearizer-unittest.cc b/deps/v8/test/unittests/compiler/effect-control-linearizer-unittest.cc index 057d164d63..e658f281d7 100644 --- a/deps/v8/test/unittests/compiler/effect-control-linearizer-unittest.cc +++ b/deps/v8/test/unittests/compiler/effect-control-linearizer-unittest.cc @@ -40,7 +40,6 @@ class EffectControlLinearizerTest : public GraphTest { SimplifiedOperatorBuilder* simplified() { return &simplified_; } SourcePositionTable* source_positions() { return source_positions_; } NodeOriginTable* node_origins() { return node_origins_; } - std::vector<Handle<Map>>* maps() { return &maps_; } private: MachineOperatorBuilder machine_; @@ -49,7 +48,6 @@ class EffectControlLinearizerTest : public GraphTest { JSGraph jsgraph_; SourcePositionTable* source_positions_; NodeOriginTable* node_origins_; - std::vector<Handle<Map>> maps_; }; namespace { @@ -87,10 +85,9 @@ TEST_F(EffectControlLinearizerTest, SimpleLoad) { schedule.AddReturn(start, ret); // Run the state effect introducer. - EffectControlLinearizer introducer( - jsgraph(), &schedule, zone(), source_positions(), node_origins(), - EffectControlLinearizer::kDoNotMaskArrayIndex, maps()); - introducer.Run(); + LinearizeEffectControl(jsgraph(), &schedule, zone(), source_positions(), + node_origins(), + MaskArrayIndexEnable::kDoNotMaskArrayIndex); EXPECT_THAT(load, IsLoadField(AccessBuilder::ForHeapNumberValue(), heap_number, @@ -150,10 +147,9 @@ TEST_F(EffectControlLinearizerTest, DiamondLoad) { schedule.AddReturn(mblock, ret); // Run the state effect introducer. - EffectControlLinearizer introducer( - jsgraph(), &schedule, zone(), source_positions(), node_origins(), - EffectControlLinearizer::kDoNotMaskArrayIndex, maps()); - introducer.Run(); + LinearizeEffectControl(jsgraph(), &schedule, zone(), source_positions(), + node_origins(), + MaskArrayIndexEnable::kDoNotMaskArrayIndex); // The effect input to the return should be an effect phi with the // newly introduced effectful change operators. @@ -218,10 +214,9 @@ TEST_F(EffectControlLinearizerTest, LoopLoad) { schedule.AddReturn(rblock, ret); // Run the state effect introducer. - EffectControlLinearizer introducer( - jsgraph(), &schedule, zone(), source_positions(), node_origins(), - EffectControlLinearizer::kDoNotMaskArrayIndex, maps()); - introducer.Run(); + LinearizeEffectControl(jsgraph(), &schedule, zone(), source_positions(), + node_origins(), + MaskArrayIndexEnable::kDoNotMaskArrayIndex); ASSERT_THAT(ret, IsReturn(load, load, if_true)); EXPECT_THAT(load, IsLoadField(AccessBuilder::ForHeapNumberValue(), @@ -282,10 +277,9 @@ TEST_F(EffectControlLinearizerTest, CloneBranch) { schedule.AddNode(mblock, merge); schedule.AddNode(mblock, graph()->end()); - EffectControlLinearizer introducer( - jsgraph(), &schedule, zone(), source_positions(), node_origins(), - EffectControlLinearizer::kDoNotMaskArrayIndex, maps()); - introducer.Run(); + LinearizeEffectControl(jsgraph(), &schedule, zone(), source_positions(), + node_origins(), + MaskArrayIndexEnable::kDoNotMaskArrayIndex); Capture<Node *> branch1_capture, branch2_capture; EXPECT_THAT( |