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

Side by Side Diff: test/unittests/compiler/loop-peeling-unittest.cc

Issue 2446543002: [turbofan] Support variable size argument popping in TF-generated functions (Closed)
Patch Set: Fix tests and arm64 Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/access-builder.h" 5 #include "src/compiler/access-builder.h"
6 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/graph-visualizer.h" 7 #include "src/compiler/graph-visualizer.h"
8 #include "src/compiler/js-graph.h" 8 #include "src/compiler/js-graph.h"
9 #include "src/compiler/loop-peeling.h" 9 #include "src/compiler/loop-peeling.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 PeeledIteration* peeled = 83 PeeledIteration* peeled =
84 LoopPeeler::Peel(graph(), common(), loop_tree, loop, zone()); 84 LoopPeeler::Peel(graph(), common(), loop_tree, loop, zone());
85 if (FLAG_trace_turbo_graph) { 85 if (FLAG_trace_turbo_graph) {
86 OFStream os(stdout); 86 OFStream os(stdout);
87 os << AsRPO(*graph()); 87 os << AsRPO(*graph());
88 } 88 }
89 return peeled; 89 return peeled;
90 } 90 }
91 91
92 Node* InsertReturn(Node* val, Node* effect, Node* control) { 92 Node* InsertReturn(Node* val, Node* effect, Node* control) {
93 Node* r = graph()->NewNode(common()->Return(), val, effect, control); 93 Node* zero = graph()->NewNode(common()->Int32Constant(0));
94 Node* r = graph()->NewNode(common()->Return(), zero, val, effect, control);
94 graph()->SetEnd(r); 95 graph()->SetEnd(r);
95 return r; 96 return r;
96 } 97 }
97 98
98 Node* ExpectPeeled(Node* node, PeeledIteration* iter) { 99 Node* ExpectPeeled(Node* node, PeeledIteration* iter) {
99 Node* p = iter->map(node); 100 Node* p = iter->map(node);
100 EXPECT_NE(node, p); 101 EXPECT_NE(node, p);
101 return p; 102 return p;
102 } 103 }
103 104
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 LoopTree* loop_tree = GetLoopTree(); 518 LoopTree* loop_tree = GetLoopTree();
518 LoopTree::Loop* loop = loop_tree->outer_loops()[0]; 519 LoopTree::Loop* loop = loop_tree->outer_loops()[0];
519 EXPECT_FALSE(LoopPeeler::CanPeel(loop_tree, loop)); 520 EXPECT_FALSE(LoopPeeler::CanPeel(loop_tree, loop));
520 } 521 }
521 } 522 }
522 523
523 524
524 } // namespace compiler 525 } // namespace compiler
525 } // namespace internal 526 } // namespace internal
526 } // namespace v8 527 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/int64-lowering-unittest.cc ('k') | test/unittests/compiler/node-test-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698