| 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/adapters.h" | 10 #include "src/base/adapters.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 sequence_(nullptr), | 98 sequence_(nullptr), |
| 99 frame_(nullptr), | 99 frame_(nullptr), |
| 100 register_allocation_zone_scope_(zone_pool_), | 100 register_allocation_zone_scope_(zone_pool_), |
| 101 register_allocation_zone_(register_allocation_zone_scope_.zone()), | 101 register_allocation_zone_(register_allocation_zone_scope_.zone()), |
| 102 register_allocation_data_(nullptr) { | 102 register_allocation_data_(nullptr) { |
| 103 PhaseScope scope(pipeline_statistics, "init pipeline data"); | 103 PhaseScope scope(pipeline_statistics, "init pipeline data"); |
| 104 graph_ = new (graph_zone_) Graph(graph_zone_); | 104 graph_ = new (graph_zone_) Graph(graph_zone_); |
| 105 source_positions_.Reset(new SourcePositionTable(graph_)); | 105 source_positions_.Reset(new SourcePositionTable(graph_)); |
| 106 simplified_ = new (graph_zone_) SimplifiedOperatorBuilder(graph_zone_); | 106 simplified_ = new (graph_zone_) SimplifiedOperatorBuilder(graph_zone_); |
| 107 machine_ = new (graph_zone_) MachineOperatorBuilder( | 107 machine_ = new (graph_zone_) MachineOperatorBuilder( |
| 108 graph_zone_, kMachPtr, | 108 graph_zone_, MachineType::PointerRepresentation(), |
| 109 InstructionSelector::SupportedMachineOperatorFlags()); | 109 InstructionSelector::SupportedMachineOperatorFlags()); |
| 110 common_ = new (graph_zone_) CommonOperatorBuilder(graph_zone_); | 110 common_ = new (graph_zone_) CommonOperatorBuilder(graph_zone_); |
| 111 javascript_ = new (graph_zone_) JSOperatorBuilder(graph_zone_); | 111 javascript_ = new (graph_zone_) JSOperatorBuilder(graph_zone_); |
| 112 jsgraph_ = new (graph_zone_) | 112 jsgraph_ = new (graph_zone_) |
| 113 JSGraph(isolate_, graph_, common_, javascript_, simplified_, machine_); | 113 JSGraph(isolate_, graph_, common_, javascript_, simplified_, machine_); |
| 114 } | 114 } |
| 115 | 115 |
| 116 // For machine graph testing entry point. | 116 // For machine graph testing entry point. |
| 117 PipelineData(ZonePool* zone_pool, CompilationInfo* info, Graph* graph, | 117 PipelineData(ZonePool* zone_pool, CompilationInfo* info, Graph* graph, |
| 118 Schedule* schedule) | 118 Schedule* schedule) |
| (...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1480 tcf << AsC1VRegisterAllocationData("CodeGen", | 1480 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1481 data->register_allocation_data()); | 1481 data->register_allocation_data()); |
| 1482 } | 1482 } |
| 1483 | 1483 |
| 1484 data->DeleteRegisterAllocationZone(); | 1484 data->DeleteRegisterAllocationZone(); |
| 1485 } | 1485 } |
| 1486 | 1486 |
| 1487 } // namespace compiler | 1487 } // namespace compiler |
| 1488 } // namespace internal | 1488 } // namespace internal |
| 1489 } // namespace v8 | 1489 } // namespace v8 |
| OLD | NEW |