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

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

Issue 1366543003: Reland "[turbofan] Checking of input counts on node creation" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Created 5 years, 3 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 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/common-operator.h" 6 #include "src/compiler/common-operator.h"
7 #include "src/compiler/graph.h" 7 #include "src/compiler/graph.h"
8 #include "src/compiler/graph-visualizer.h" 8 #include "src/compiler/graph-visualizer.h"
9 #include "src/compiler/js-operator.h" 9 #include "src/compiler/js-operator.h"
10 #include "src/compiler/node.h" 10 #include "src/compiler/node.h"
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 748
749 Node* p0 = graph()->NewNode(common()->Parameter(0), start); 749 Node* p0 = graph()->NewNode(common()->Parameter(0), start);
750 750
751 Node* fv = graph()->NewNode(common()->Int32Constant(7)); 751 Node* fv = graph()->NewNode(common()->Int32Constant(7));
752 Node* br = graph()->NewNode(common()->Branch(), p0, graph()->start()); 752 Node* br = graph()->NewNode(common()->Branch(), p0, graph()->start());
753 Node* t = graph()->NewNode(common()->IfTrue(), br); 753 Node* t = graph()->NewNode(common()->IfTrue(), br);
754 Node* f = graph()->NewNode(common()->IfFalse(), br); 754 Node* f = graph()->NewNode(common()->IfFalse(), br);
755 755
756 Node* map = graph()->NewNode( 756 Node* map = graph()->NewNode(
757 simplified()->LoadElement(AccessBuilder::ForFixedArrayElement()), p0, p0, 757 simplified()->LoadElement(AccessBuilder::ForFixedArrayElement()), p0, p0,
758 p0, start, f); 758 start, f);
759 Node* br1 = graph()->NewNode(common()->Branch(), map, graph()->start()); 759 Node* br1 = graph()->NewNode(common()->Branch(), map, graph()->start());
760 Node* t1 = graph()->NewNode(common()->IfTrue(), br1); 760 Node* t1 = graph()->NewNode(common()->IfTrue(), br1);
761 Node* f1 = graph()->NewNode(common()->IfFalse(), br1); 761 Node* f1 = graph()->NewNode(common()->IfFalse(), br1);
762 Node* m1 = graph()->NewNode(common()->Merge(2), t1, f1); 762 Node* m1 = graph()->NewNode(common()->Merge(2), t1, f1);
763 Node* ttrue = graph()->NewNode(common()->Int32Constant(1)); 763 Node* ttrue = graph()->NewNode(common()->Int32Constant(1));
764 Node* ffalse = graph()->NewNode(common()->Int32Constant(0)); 764 Node* ffalse = graph()->NewNode(common()->Int32Constant(0));
765 Node* phi1 = 765 Node* phi1 =
766 graph()->NewNode(common()->Phi(kMachAnyTagged, 2), ttrue, ffalse, m1); 766 graph()->NewNode(common()->Phi(kMachAnyTagged, 2), ttrue, ffalse, m1);
767 767
768 768
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 1160
1161 Schedule* schedule = ComputeAndVerifySchedule(6); 1161 Schedule* schedule = ComputeAndVerifySchedule(6);
1162 BasicBlock* block = schedule->block(loop); 1162 BasicBlock* block = schedule->block(loop);
1163 EXPECT_EQ(block, schedule->block(effect)); 1163 EXPECT_EQ(block, schedule->block(effect));
1164 EXPECT_GE(block->rpo_number(), 0); 1164 EXPECT_GE(block->rpo_number(), 0);
1165 } 1165 }
1166 1166
1167 } // namespace compiler 1167 } // namespace compiler
1168 } // namespace internal 1168 } // namespace internal
1169 } // namespace v8 1169 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/loop-peeling-unittest.cc ('k') | test/unittests/compiler/typer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698