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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 } // namespace | 563 } // namespace |
564 | 564 |
565 class PipelineCompilationJob final : public CompilationJob { | 565 class PipelineCompilationJob final : public CompilationJob { |
566 public: | 566 public: |
567 PipelineCompilationJob(Isolate* isolate, Handle<JSFunction> function) | 567 PipelineCompilationJob(Isolate* isolate, Handle<JSFunction> function) |
568 // Note that the CompilationInfo is not initialized at the time we pass it | 568 // Note that the CompilationInfo is not initialized at the time we pass it |
569 // to the CompilationJob constructor, but it is not dereferenced there. | 569 // to the CompilationJob constructor, but it is not dereferenced there. |
570 : CompilationJob(isolate, &info_, "TurboFan"), | 570 : CompilationJob(isolate, &info_, "TurboFan"), |
571 zone_(isolate->allocator()), | 571 zone_(isolate->allocator()), |
572 zone_stats_(isolate->allocator()), | 572 zone_stats_(isolate->allocator()), |
573 parse_info_(&zone_, handle(function->shared())), | 573 parse_info_(&zone_, function), |
574 info_(&parse_info_, function), | 574 info_(&parse_info_, function), |
575 pipeline_statistics_(CreatePipelineStatistics(info(), &zone_stats_)), | 575 pipeline_statistics_(CreatePipelineStatistics(info(), &zone_stats_)), |
576 data_(&zone_stats_, info(), pipeline_statistics_.get()), | 576 data_(&zone_stats_, info(), pipeline_statistics_.get()), |
577 pipeline_(&data_), | 577 pipeline_(&data_), |
578 linkage_(nullptr) {} | 578 linkage_(nullptr) {} |
579 | 579 |
580 protected: | 580 protected: |
581 Status PrepareJobImpl() final; | 581 Status PrepareJobImpl() final; |
582 Status ExecuteJobImpl() final; | 582 Status ExecuteJobImpl() final; |
583 Status FinalizeJobImpl() final; | 583 Status FinalizeJobImpl() final; |
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 data->DeleteRegisterAllocationZone(); | 1990 data->DeleteRegisterAllocationZone(); |
1991 } | 1991 } |
1992 | 1992 |
1993 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1993 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
1994 | 1994 |
1995 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1995 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
1996 | 1996 |
1997 } // namespace compiler | 1997 } // namespace compiler |
1998 } // namespace internal | 1998 } // namespace internal |
1999 } // namespace v8 | 1999 } // namespace v8 |
OLD | NEW |