OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/compiler/access-builder.h" | 7 #include "src/compiler/access-builder.h" |
8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
9 #include "src/compiler/graph.h" | 9 #include "src/compiler/graph.h" |
10 #include "src/compiler/graph-visualizer.h" | 10 #include "src/compiler/graph-visualizer.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 // A helper for all tests dealing with LoopFinder. | 35 // A helper for all tests dealing with LoopFinder. |
36 class LoopFinderTester : HandleAndZoneScope { | 36 class LoopFinderTester : HandleAndZoneScope { |
37 public: | 37 public: |
38 LoopFinderTester() | 38 LoopFinderTester() |
39 : isolate(main_isolate()), | 39 : isolate(main_isolate()), |
40 common(main_zone()), | 40 common(main_zone()), |
41 graph(main_zone()), | 41 graph(main_zone()), |
42 jsgraph(main_isolate(), &graph, &common, NULL, NULL), | 42 jsgraph(main_isolate(), &graph, &common, NULL, NULL), |
43 start(graph.NewNode(common.Start(1))), | 43 start(graph.NewNode(common.Start(1))), |
44 end(graph.NewNode(common.End(), start)), | 44 end(graph.NewNode(common.End(1), start)), |
45 p0(graph.NewNode(common.Parameter(0), start)), | 45 p0(graph.NewNode(common.Parameter(0), start)), |
46 zero(jsgraph.Int32Constant(0)), | 46 zero(jsgraph.Int32Constant(0)), |
47 one(jsgraph.OneConstant()), | 47 one(jsgraph.OneConstant()), |
48 half(jsgraph.Constant(0.5)), | 48 half(jsgraph.Constant(0.5)), |
49 self(graph.NewNode(common.Int32Constant(0xaabbccdd))), | 49 self(graph.NewNode(common.Int32Constant(0xaabbccdd))), |
50 dead(graph.NewNode(common.Dead())), | 50 dead(graph.NewNode(common.Dead())), |
51 loop_tree(NULL) { | 51 loop_tree(NULL) { |
52 graph.SetEnd(end); | 52 graph.SetEnd(end); |
53 graph.SetStart(start); | 53 graph.SetStart(start); |
54 leaf[0] = zero; | 54 leaf[0] = zero; |
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 TEST(LaManyNested_31) { RunManyNestedLoops_i(31); } | 1006 TEST(LaManyNested_31) { RunManyNestedLoops_i(31); } |
1007 TEST(LaManyNested_32) { RunManyNestedLoops_i(32); } | 1007 TEST(LaManyNested_32) { RunManyNestedLoops_i(32); } |
1008 TEST(LaManyNested_33) { RunManyNestedLoops_i(33); } | 1008 TEST(LaManyNested_33) { RunManyNestedLoops_i(33); } |
1009 TEST(LaManyNested_34) { RunManyNestedLoops_i(34); } | 1009 TEST(LaManyNested_34) { RunManyNestedLoops_i(34); } |
1010 TEST(LaManyNested_62) { RunManyNestedLoops_i(62); } | 1010 TEST(LaManyNested_62) { RunManyNestedLoops_i(62); } |
1011 TEST(LaManyNested_63) { RunManyNestedLoops_i(63); } | 1011 TEST(LaManyNested_63) { RunManyNestedLoops_i(63); } |
1012 TEST(LaManyNested_64) { RunManyNestedLoops_i(64); } | 1012 TEST(LaManyNested_64) { RunManyNestedLoops_i(64); } |
1013 | 1013 |
1014 | 1014 |
1015 TEST(LaPhiTangle) { LoopFinderTester t; } | 1015 TEST(LaPhiTangle) { LoopFinderTester t; } |
OLD | NEW |