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

Unified Diff: test/cctest/compiler/test-osr.cc

Issue 1513543003: [turbofan] Make MachineType a pair of enums. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Moar rebase Created 5 years 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 | « test/cctest/compiler/test-multiple-return.cc ('k') | test/cctest/compiler/test-representation-change.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-osr.cc
diff --git a/test/cctest/compiler/test-osr.cc b/test/cctest/compiler/test-osr.cc
index 6e1b6fc89956f157d40b14c3b269ddc98ae5a8d8..f0640c2e0a6dcd7f41d9f40431ae76c2148a2066 100644
--- a/test/cctest/compiler/test-osr.cc
+++ b/test/cctest/compiler/test-osr.cc
@@ -91,7 +91,8 @@ class OsrDeconstructorTester : public HandleAndZoneScope {
if (count > 3) inputs[3] = back2;
if (count > 4) inputs[4] = back3;
inputs[count] = loop;
- return graph.NewNode(common.Phi(kMachAnyTagged, count), count + 1, inputs);
+ return graph.NewNode(common.Phi(MachineRepresentation::kTagged, count),
+ count + 1, inputs);
}
Node* NewLoop(bool is_osr, int num_backedges, Node* entry = nullptr) {
@@ -314,9 +315,11 @@ struct While {
Node* Phi(Node* i1, Node* i2, Node* i3) {
if (loop->InputCount() == 2) {
- return t.graph.NewNode(t.common.Phi(kMachAnyTagged, 2), i1, i2, loop);
+ return t.graph.NewNode(t.common.Phi(MachineRepresentation::kTagged, 2),
+ i1, i2, loop);
} else {
- return t.graph.NewNode(t.common.Phi(kMachAnyTagged, 3), i1, i2, i3, loop);
+ return t.graph.NewNode(t.common.Phi(MachineRepresentation::kTagged, 3),
+ i1, i2, i3, loop);
}
}
};
@@ -473,7 +476,8 @@ Node* MakeCounter(JSGraph* jsgraph, Node* start, Node* loop) {
tmp_inputs.push_back(loop);
Node* phi = jsgraph->graph()->NewNode(
- jsgraph->common()->Phi(kMachInt32, count), count + 1, &tmp_inputs[0]);
+ jsgraph->common()->Phi(MachineRepresentation::kWord32, count), count + 1,
+ &tmp_inputs[0]);
Node* inc = jsgraph->graph()->NewNode(&kIntAdd, phi, jsgraph->OneConstant());
for (int i = 1; i < count; i++) {
@@ -493,8 +497,9 @@ TEST(Deconstruct_osr_nested3) {
// middle loop.
Node* loop1 = T.graph.NewNode(T.common.Loop(1), loop0.if_true);
- Node* loop1_phi = T.graph.NewNode(T.common.Phi(kMachAnyTagged, 2), loop0_cntr,
- loop0_cntr, loop1);
+ Node* loop1_phi =
+ T.graph.NewNode(T.common.Phi(MachineRepresentation::kTagged, 2),
+ loop0_cntr, loop0_cntr, loop1);
// innermost (OSR) loop.
While loop2(T, T.p0, true, 1);
« no previous file with comments | « test/cctest/compiler/test-multiple-return.cc ('k') | test/cctest/compiler/test-representation-change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698