Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1005)

Unified Diff: test/unittests/compiler/load-elimination-unittest.cc

Issue 2220513002: Revert of [turbofan] Add support for copy-on-write element stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/interface-descriptors.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « src/interface-descriptors.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698