| 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 <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/base/platform/elapsed-timer.h" | 9 #include "src/base/platform/elapsed-timer.h" |
| 10 #include "src/compiler/ast-graph-builder.h" | 10 #include "src/compiler/ast-graph-builder.h" |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 ZonePool zone_pool(isolate()); | 240 ZonePool zone_pool(isolate()); |
| 241 | 241 |
| 242 // Build the graph. | 242 // Build the graph. |
| 243 Graph graph(zone()); | 243 Graph graph(zone()); |
| 244 SourcePositionTable source_positions(&graph); | 244 SourcePositionTable source_positions(&graph); |
| 245 source_positions.AddDecorator(); | 245 source_positions.AddDecorator(); |
| 246 // TODO(turbofan): there is no need to type anything during initial graph | 246 // TODO(turbofan): there is no need to type anything during initial graph |
| 247 // construction. This is currently only needed for the node cache, which the | 247 // construction. This is currently only needed for the node cache, which the |
| 248 // typer could sweep over later. | 248 // typer could sweep over later. |
| 249 Typer typer(&graph, info()->context()); | 249 Typer typer(&graph, info()->context()); |
| 250 MachineOperatorBuilder machine; | 250 MachineOperatorBuilder machine(kMachPtr, |
| 251 InstructionSelector::GetSupportedOperators()); |
| 251 CommonOperatorBuilder common(zone()); | 252 CommonOperatorBuilder common(zone()); |
| 252 JSOperatorBuilder javascript(zone()); | 253 JSOperatorBuilder javascript(zone()); |
| 253 JSGraph jsgraph(&graph, &common, &javascript, &machine); | 254 JSGraph jsgraph(&graph, &common, &javascript, &machine); |
| 254 Node* context_node; | 255 Node* context_node; |
| 255 { | 256 { |
| 256 PhaseStats graph_builder_stats(info(), &zone_pool, PhaseStats::CREATE_GRAPH, | 257 PhaseStats graph_builder_stats(info(), &zone_pool, PhaseStats::CREATE_GRAPH, |
| 257 "graph builder"); | 258 "graph builder"); |
| 258 ZonePool::Scope zone_scope(&zone_pool); | 259 ZonePool::Scope zone_scope(&zone_pool); |
| 259 AstGraphBuilderWithPositions graph_builder(zone_scope.zone(), info(), | 260 AstGraphBuilderWithPositions graph_builder(zone_scope.zone(), info(), |
| 260 &jsgraph, &source_positions); | 261 &jsgraph, &source_positions); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 } | 537 } |
| 537 | 538 |
| 538 | 539 |
| 539 void Pipeline::TearDown() { | 540 void Pipeline::TearDown() { |
| 540 InstructionOperand::TearDownCaches(); | 541 InstructionOperand::TearDownCaches(); |
| 541 } | 542 } |
| 542 | 543 |
| 543 } // namespace compiler | 544 } // namespace compiler |
| 544 } // namespace internal | 545 } // namespace internal |
| 545 } // namespace v8 | 546 } // namespace v8 |
| OLD | NEW |