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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 instruction_zone_scope_(zone_pool_), | 92 instruction_zone_scope_(zone_pool_), |
93 instruction_zone_(instruction_zone_scope_.zone()), | 93 instruction_zone_(instruction_zone_scope_.zone()), |
94 register_allocation_zone_scope_(zone_pool_), | 94 register_allocation_zone_scope_(zone_pool_), |
95 register_allocation_zone_(register_allocation_zone_scope_.zone()) { | 95 register_allocation_zone_(register_allocation_zone_scope_.zone()) { |
96 PhaseScope scope(pipeline_statistics, "init pipeline data"); | 96 PhaseScope scope(pipeline_statistics, "init pipeline data"); |
97 graph_ = new (graph_zone_) Graph(graph_zone_); | 97 graph_ = new (graph_zone_) Graph(graph_zone_); |
98 source_positions_ = new (graph_zone_) SourcePositionTable(graph_); | 98 source_positions_ = new (graph_zone_) SourcePositionTable(graph_); |
99 simplified_ = new (graph_zone_) SimplifiedOperatorBuilder(graph_zone_); | 99 simplified_ = new (graph_zone_) SimplifiedOperatorBuilder(graph_zone_); |
100 machine_ = new (graph_zone_) MachineOperatorBuilder( | 100 machine_ = new (graph_zone_) MachineOperatorBuilder( |
101 graph_zone_, MachineType::PointerRepresentation(), | 101 graph_zone_, MachineType::PointerRepresentation(), |
102 InstructionSelector::SupportedMachineOperatorFlags()); | 102 InstructionSelector::SupportedMachineOperatorFlags(), |
| 103 InstructionSelector::AlignmentRequirements()); |
103 common_ = new (graph_zone_) CommonOperatorBuilder(graph_zone_); | 104 common_ = new (graph_zone_) CommonOperatorBuilder(graph_zone_); |
104 javascript_ = new (graph_zone_) JSOperatorBuilder(graph_zone_); | 105 javascript_ = new (graph_zone_) JSOperatorBuilder(graph_zone_); |
105 jsgraph_ = new (graph_zone_) | 106 jsgraph_ = new (graph_zone_) |
106 JSGraph(isolate_, graph_, common_, javascript_, simplified_, machine_); | 107 JSGraph(isolate_, graph_, common_, javascript_, simplified_, machine_); |
107 } | 108 } |
108 | 109 |
109 // For WASM compile entry point. | 110 // For WASM compile entry point. |
110 PipelineData(ZonePool* zone_pool, CompilationInfo* info, Graph* graph, | 111 PipelineData(ZonePool* zone_pool, CompilationInfo* info, Graph* graph, |
111 SourcePositionTable* source_positions) | 112 SourcePositionTable* source_positions) |
112 : isolate_(info->isolate()), | 113 : isolate_(info->isolate()), |
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1865 data->DeleteRegisterAllocationZone(); | 1866 data->DeleteRegisterAllocationZone(); |
1866 } | 1867 } |
1867 | 1868 |
1868 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1869 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
1869 | 1870 |
1870 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1871 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
1871 | 1872 |
1872 } // namespace compiler | 1873 } // namespace compiler |
1873 } // namespace internal | 1874 } // namespace internal |
1874 } // namespace v8 | 1875 } // namespace v8 |
OLD | NEW |