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/compiler/js-graph.h" | 5 #include "src/compiler/js-graph.h" |
6 #include "src/compiler/js-typed-lowering.h" | 6 #include "src/compiler/js-typed-lowering.h" |
7 #include "src/compiler/machine-operator.h" | 7 #include "src/compiler/machine-operator.h" |
8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 #include "src/compiler/opcodes.h" | 9 #include "src/compiler/opcodes.h" |
10 #include "src/compiler/operator-properties.h" | 10 #include "src/compiler/operator-properties.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 binop(NULL), | 34 binop(NULL), |
35 unop(NULL), | 35 unop(NULL), |
36 javascript(main_zone()), | 36 javascript(main_zone()), |
37 machine(main_zone()), | 37 machine(main_zone()), |
38 simplified(main_zone()), | 38 simplified(main_zone()), |
39 common(main_zone()), | 39 common(main_zone()), |
40 graph(main_zone()), | 40 graph(main_zone()), |
41 typer(main_isolate(), &graph, MaybeHandle<Context>()), | 41 typer(main_isolate(), &graph, MaybeHandle<Context>()), |
42 context_node(NULL) { | 42 context_node(NULL) { |
43 graph.SetStart(graph.NewNode(common.Start(num_parameters))); | 43 graph.SetStart(graph.NewNode(common.Start(num_parameters))); |
44 graph.SetEnd(graph.NewNode(common.End())); | 44 graph.SetEnd(graph.NewNode(common.End(1))); |
45 typer.Run(); | 45 typer.Run(); |
46 } | 46 } |
47 | 47 |
48 Isolate* isolate; | 48 Isolate* isolate; |
49 const Operator* binop; | 49 const Operator* binop; |
50 const Operator* unop; | 50 const Operator* unop; |
51 JSOperatorBuilder javascript; | 51 JSOperatorBuilder javascript; |
52 MachineOperatorBuilder machine; | 52 MachineOperatorBuilder machine; |
53 SimplifiedOperatorBuilder simplified; | 53 SimplifiedOperatorBuilder simplified; |
54 CommonOperatorBuilder common; | 54 CommonOperatorBuilder common; |
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1262 CHECK_EQ(p1, r->InputAt(0)); | 1262 CHECK_EQ(p1, r->InputAt(0)); |
1263 CHECK_EQ(p0, r->InputAt(1)); | 1263 CHECK_EQ(p0, r->InputAt(1)); |
1264 } else { | 1264 } else { |
1265 CHECK_EQ(p0, r->InputAt(0)); | 1265 CHECK_EQ(p0, r->InputAt(0)); |
1266 CHECK_EQ(p1, r->InputAt(1)); | 1266 CHECK_EQ(p1, r->InputAt(1)); |
1267 } | 1267 } |
1268 } | 1268 } |
1269 } | 1269 } |
1270 } | 1270 } |
1271 } | 1271 } |
OLD | NEW |