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 <memory> | 8 #include <memory> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1416 } | 1416 } |
1417 } | 1417 } |
1418 }; | 1418 }; |
1419 | 1419 |
1420 | 1420 |
1421 struct GenerateCodePhase { | 1421 struct GenerateCodePhase { |
1422 static const char* phase_name() { return "generate code"; } | 1422 static const char* phase_name() { return "generate code"; } |
1423 | 1423 |
1424 void Run(PipelineData* data, Zone* temp_zone, Linkage* linkage) { | 1424 void Run(PipelineData* data, Zone* temp_zone, Linkage* linkage) { |
1425 CodeGenerator generator(data->frame(), linkage, data->sequence(), | 1425 CodeGenerator generator(data->frame(), linkage, data->sequence(), |
1426 data->info(), data->protected_instructions()); | 1426 data->info()); |
1427 data->set_code(generator.GenerateCode()); | 1427 data->set_code(generator.GenerateCode()); |
1428 } | 1428 } |
1429 }; | 1429 }; |
1430 | 1430 |
1431 | 1431 |
1432 struct PrintGraphPhase { | 1432 struct PrintGraphPhase { |
1433 static const char* phase_name() { return nullptr; } | 1433 static const char* phase_name() { return nullptr; } |
1434 | 1434 |
1435 void Run(PipelineData* data, Zone* temp_zone, const char* phase) { | 1435 void Run(PipelineData* data, Zone* temp_zone, const char* phase) { |
1436 CompilationInfo* info = data->info(); | 1436 CompilationInfo* info = data->info(); |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2016 data->DeleteRegisterAllocationZone(); | 2016 data->DeleteRegisterAllocationZone(); |
2017 } | 2017 } |
2018 | 2018 |
2019 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 2019 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
2020 | 2020 |
2021 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 2021 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
2022 | 2022 |
2023 } // namespace compiler | 2023 } // namespace compiler |
2024 } // namespace internal | 2024 } // namespace internal |
2025 } // namespace v8 | 2025 } // namespace v8 |
OLD | NEW |