Index: test/unittests/compiler/load-elimination-unittest.cc |
diff --git a/test/unittests/compiler/load-elimination-unittest.cc b/test/unittests/compiler/load-elimination-unittest.cc |
index ada99b5a7f8b6761e0221eb6c7a12e54737a9e26..f56e5c3898f11803d9b67e0d93ec2e7058d5b156 100644 |
--- a/test/unittests/compiler/load-elimination-unittest.cc |
+++ b/test/unittests/compiler/load-elimination-unittest.cc |
@@ -4,7 +4,6 @@ |
#include "src/compiler/load-elimination.h" |
#include "src/compiler/access-builder.h" |
-#include "src/compiler/js-graph.h" |
#include "src/compiler/node.h" |
#include "src/compiler/simplified-operator.h" |
#include "test/unittests/compiler/graph-reducer-unittest.h" |
@@ -21,20 +20,14 @@ |
class LoadEliminationTest : public TypedGraphTest { |
public: |
- LoadEliminationTest() |
- : TypedGraphTest(3), |
- simplified_(zone()), |
- jsgraph_(isolate(), graph(), common(), nullptr, simplified(), nullptr) { |
- } |
+ LoadEliminationTest() : TypedGraphTest(3), simplified_(zone()) {} |
~LoadEliminationTest() override {} |
protected: |
- JSGraph* jsgraph() { return &jsgraph_; } |
SimplifiedOperatorBuilder* simplified() { return &simplified_; } |
private: |
SimplifiedOperatorBuilder simplified_; |
- JSGraph jsgraph_; |
}; |
TEST_F(LoadEliminationTest, LoadElementAndLoadElement) { |
@@ -46,7 +39,7 @@ |
MachineType::AnyTagged(), kNoWriteBarrier}; |
StrictMock<MockAdvancedReducerEditor> editor; |
- LoadElimination load_elimination(&editor, jsgraph(), zone()); |
+ LoadElimination load_elimination(&editor, zone()); |
load_elimination.Reduce(graph()->start()); |
@@ -72,7 +65,7 @@ |
MachineType::AnyTagged(), kNoWriteBarrier}; |
StrictMock<MockAdvancedReducerEditor> editor; |
- LoadElimination load_elimination(&editor, jsgraph(), zone()); |
+ LoadElimination load_elimination(&editor, zone()); |
load_elimination.Reduce(graph()->start()); |
@@ -99,7 +92,7 @@ |
MachineType::AnyTagged(), kNoWriteBarrier}; |
StrictMock<MockAdvancedReducerEditor> editor; |
- LoadElimination load_elimination(&editor, jsgraph(), zone()); |
+ LoadElimination load_elimination(&editor, zone()); |
load_elimination.Reduce(graph()->start()); |
@@ -133,7 +126,7 @@ |
kNoWriteBarrier}; |
StrictMock<MockAdvancedReducerEditor> editor; |
- LoadElimination load_elimination(&editor, jsgraph(), zone()); |
+ LoadElimination load_elimination(&editor, zone()); |
load_elimination.Reduce(graph()->start()); |
@@ -162,7 +155,7 @@ |
kNoWriteBarrier}; |
StrictMock<MockAdvancedReducerEditor> editor; |
- LoadElimination load_elimination(&editor, jsgraph(), zone()); |
+ LoadElimination load_elimination(&editor, zone()); |
load_elimination.Reduce(graph()->start()); |
@@ -192,7 +185,7 @@ |
kNoWriteBarrier}; |
StrictMock<MockAdvancedReducerEditor> editor; |
- LoadElimination load_elimination(&editor, jsgraph(), zone()); |
+ LoadElimination load_elimination(&editor, zone()); |
load_elimination.Reduce(graph()->start()); |