| 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 <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/base/platform/elapsed-timer.h" | 10 #include "src/base/platform/elapsed-timer.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 } | 171 } |
| 172 | 172 |
| 173 // Build the graph. | 173 // Build the graph. |
| 174 Graph graph(zone()); | 174 Graph graph(zone()); |
| 175 SourcePositionTable source_positions(&graph); | 175 SourcePositionTable source_positions(&graph); |
| 176 source_positions.AddDecorator(); | 176 source_positions.AddDecorator(); |
| 177 // TODO(turbofan): there is no need to type anything during initial graph | 177 // TODO(turbofan): there is no need to type anything during initial graph |
| 178 // construction. This is currently only needed for the node cache, which the | 178 // construction. This is currently only needed for the node cache, which the |
| 179 // typer could sweep over later. | 179 // typer could sweep over later. |
| 180 Typer typer(&graph, info()->context()); | 180 Typer typer(&graph, info()->context()); |
| 181 MachineOperatorBuilder machine; | 181 MachineOperatorBuilder machine( |
| 182 kMachPtr, InstructionSelector::SupportedMachineOperatorFlags()); |
| 182 CommonOperatorBuilder common(zone()); | 183 CommonOperatorBuilder common(zone()); |
| 183 JSOperatorBuilder javascript(zone()); | 184 JSOperatorBuilder javascript(zone()); |
| 184 JSGraph jsgraph(&graph, &common, &javascript, &machine); | 185 JSGraph jsgraph(&graph, &common, &javascript, &machine); |
| 185 Node* context_node; | 186 Node* context_node; |
| 186 { | 187 { |
| 187 PhaseScope phase_scope(pipeline_statistics.get(), "graph builder"); | 188 PhaseScope phase_scope(pipeline_statistics.get(), "graph builder"); |
| 188 ZonePool::Scope zone_scope(&zone_pool); | 189 ZonePool::Scope zone_scope(&zone_pool); |
| 189 AstGraphBuilderWithPositions graph_builder(zone_scope.zone(), info(), | 190 AstGraphBuilderWithPositions graph_builder(zone_scope.zone(), info(), |
| 190 &jsgraph, &source_positions); | 191 &jsgraph, &source_positions); |
| 191 graph_builder.CreateGraph(); | 192 graph_builder.CreateGraph(); |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 } | 480 } |
| 480 | 481 |
| 481 | 482 |
| 482 void Pipeline::TearDown() { | 483 void Pipeline::TearDown() { |
| 483 InstructionOperand::TearDownCaches(); | 484 InstructionOperand::TearDownCaches(); |
| 484 } | 485 } |
| 485 | 486 |
| 486 } // namespace compiler | 487 } // namespace compiler |
| 487 } // namespace internal | 488 } // namespace internal |
| 488 } // namespace v8 | 489 } // namespace v8 |
| OLD | NEW |