OLD | NEW |
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 Node* base; | 45 Node* base; |
46 Node* inc; | 46 Node* inc; |
47 Node* phi; | 47 Node* phi; |
48 Node* add; | 48 Node* add; |
49 }; | 49 }; |
50 | 50 |
51 | 51 |
52 class LoopPeelingTest : public GraphTest { | 52 class LoopPeelingTest : public GraphTest { |
53 public: | 53 public: |
54 LoopPeelingTest() : GraphTest(1), machine_(zone()) {} | 54 LoopPeelingTest() : GraphTest(1), machine_(zone()) {} |
55 ~LoopPeelingTest() OVERRIDE {} | 55 ~LoopPeelingTest() override {} |
56 | 56 |
57 protected: | 57 protected: |
58 MachineOperatorBuilder machine_; | 58 MachineOperatorBuilder machine_; |
59 | 59 |
60 MachineOperatorBuilder* machine() { return &machine_; } | 60 MachineOperatorBuilder* machine() { return &machine_; } |
61 | 61 |
62 LoopTree* GetLoopTree() { | 62 LoopTree* GetLoopTree() { |
63 if (FLAG_trace_turbo_graph) { | 63 if (FLAG_trace_turbo_graph) { |
64 OFStream os(stdout); | 64 OFStream os(stdout); |
65 os << AsRPO(*graph()); | 65 os << AsRPO(*graph()); |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 LoopTree* loop_tree = GetLoopTree(); | 488 LoopTree* loop_tree = GetLoopTree(); |
489 LoopTree::Loop* loop = loop_tree->outer_loops()[0]; | 489 LoopTree::Loop* loop = loop_tree->outer_loops()[0]; |
490 EXPECT_FALSE(LoopPeeler::CanPeel(loop_tree, loop)); | 490 EXPECT_FALSE(LoopPeeler::CanPeel(loop_tree, loop)); |
491 } | 491 } |
492 } | 492 } |
493 | 493 |
494 | 494 |
495 } // namespace compiler | 495 } // namespace compiler |
496 } // namespace internal | 496 } // namespace internal |
497 } // namespace v8 | 497 } // namespace v8 |
OLD | NEW |