Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: src/compiler/pipeline.cc

Issue 2396963003: [parser] Deprecate ParseInfo constructor taking closure. (Closed)
Patch Set: Rebased. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/crankshaft/hydrogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_, function), 573 parse_info_(&zone_, handle(function->shared())),
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 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1988 data->DeleteRegisterAllocationZone(); 1988 data->DeleteRegisterAllocationZone();
1989 } 1989 }
1990 1990
1991 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 1991 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
1992 1992
1993 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 1993 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
1994 1994
1995 } // namespace compiler 1995 } // namespace compiler
1996 } // namespace internal 1996 } // namespace internal
1997 } // namespace v8 1997 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/crankshaft/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698