| 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/pipeline.h" | 5 #include "src/compiler/pipeline.h" |
| 6 | 6 |
| 7 #include "src/base/platform/elapsed-timer.h" | 7 #include "src/base/platform/elapsed-timer.h" |
| 8 #include "src/compiler/ast-graph-builder.h" | 8 #include "src/compiler/ast-graph-builder.h" |
| 9 #include "src/compiler/change-lowering.h" | 9 #include "src/compiler/change-lowering.h" |
| 10 #include "src/compiler/code-generator.h" | 10 #include "src/compiler/code-generator.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // Build the graph. | 164 // Build the graph. |
| 165 Graph graph(zone()); | 165 Graph graph(zone()); |
| 166 SourcePositionTable source_positions(&graph); | 166 SourcePositionTable source_positions(&graph); |
| 167 source_positions.AddDecorator(); | 167 source_positions.AddDecorator(); |
| 168 // TODO(turbofan): there is no need to type anything during initial graph | 168 // TODO(turbofan): there is no need to type anything during initial graph |
| 169 // construction. This is currently only needed for the node cache, which the | 169 // construction. This is currently only needed for the node cache, which the |
| 170 // typer could sweep over later. | 170 // typer could sweep over later. |
| 171 Typer typer(zone()); | 171 Typer typer(zone()); |
| 172 MachineOperatorBuilder machine; | 172 MachineOperatorBuilder machine; |
| 173 CommonOperatorBuilder common(zone()); | 173 CommonOperatorBuilder common(zone()); |
| 174 JSGraph jsgraph(&graph, &common, &typer); | 174 JSOperatorBuilder javascript(zone()); |
| 175 JSGraph jsgraph(&graph, &common, &javascript, &typer, &machine); |
| 175 Node* context_node; | 176 Node* context_node; |
| 176 { | 177 { |
| 177 PhaseStats graph_builder_stats(info(), PhaseStats::CREATE_GRAPH, | 178 PhaseStats graph_builder_stats(info(), PhaseStats::CREATE_GRAPH, |
| 178 "graph builder"); | 179 "graph builder"); |
| 179 AstGraphBuilderWithPositions graph_builder(info(), &jsgraph, | 180 AstGraphBuilderWithPositions graph_builder(info(), &jsgraph, |
| 180 &source_positions); | 181 &source_positions); |
| 181 graph_builder.CreateGraph(); | 182 graph_builder.CreateGraph(); |
| 182 context_node = graph_builder.GetFunctionContext(); | 183 context_node = graph_builder.GetFunctionContext(); |
| 183 } | 184 } |
| 184 { | 185 { |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 } | 401 } |
| 401 | 402 |
| 402 | 403 |
| 403 void Pipeline::TearDown() { | 404 void Pipeline::TearDown() { |
| 404 InstructionOperand::TearDownCaches(); | 405 InstructionOperand::TearDownCaches(); |
| 405 } | 406 } |
| 406 | 407 |
| 407 } // namespace compiler | 408 } // namespace compiler |
| 408 } // namespace internal | 409 } // namespace internal |
| 409 } // namespace v8 | 410 } // namespace v8 |
| OLD | NEW |