| 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 } // namespace | 544 } // namespace |
| 545 | 545 |
| 546 class PipelineCompilationJob final : public CompilationJob { | 546 class PipelineCompilationJob final : public CompilationJob { |
| 547 public: | 547 public: |
| 548 PipelineCompilationJob(Isolate* isolate, Handle<JSFunction> function) | 548 PipelineCompilationJob(Isolate* isolate, Handle<JSFunction> function) |
| 549 // Note that the CompilationInfo is not initialized at the time we pass it | 549 // Note that the CompilationInfo is not initialized at the time we pass it |
| 550 // to the CompilationJob constructor, but it is not dereferenced there. | 550 // to the CompilationJob constructor, but it is not dereferenced there. |
| 551 : CompilationJob(isolate, &info_, "TurboFan"), | 551 : CompilationJob(isolate, &info_, "TurboFan"), |
| 552 parse_info_(handle(function->shared())), | 552 parse_info_(handle(function->shared())), |
| 553 zone_stats_(isolate->allocator()), | 553 zone_stats_(isolate->allocator()), |
| 554 info_(&parse_info_, function), | 554 info_(parse_info_.zone(), &parse_info_, function), |
| 555 pipeline_statistics_(CreatePipelineStatistics(info(), &zone_stats_)), | 555 pipeline_statistics_(CreatePipelineStatistics(info(), &zone_stats_)), |
| 556 data_(&zone_stats_, info(), pipeline_statistics_.get()), | 556 data_(&zone_stats_, info(), pipeline_statistics_.get()), |
| 557 pipeline_(&data_), | 557 pipeline_(&data_), |
| 558 linkage_(nullptr) {} | 558 linkage_(nullptr) {} |
| 559 | 559 |
| 560 protected: | 560 protected: |
| 561 Status PrepareJobImpl() final; | 561 Status PrepareJobImpl() final; |
| 562 Status ExecuteJobImpl() final; | 562 Status ExecuteJobImpl() final; |
| 563 Status FinalizeJobImpl() final; | 563 Status FinalizeJobImpl() final; |
| 564 | 564 |
| (...skipping 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2015 data->DeleteRegisterAllocationZone(); | 2015 data->DeleteRegisterAllocationZone(); |
| 2016 } | 2016 } |
| 2017 | 2017 |
| 2018 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 2018 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
| 2019 | 2019 |
| 2020 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 2020 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
| 2021 | 2021 |
| 2022 } // namespace compiler | 2022 } // namespace compiler |
| 2023 } // namespace internal | 2023 } // namespace internal |
| 2024 } // namespace v8 | 2024 } // namespace v8 |
| OLD | NEW |