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

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

Issue 2538823002: [Turbofan] Disable JSFrameSpecialization for interpreted frames. (Closed)
Patch Set: Change to disable frame specialization Created 4 years 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-frame-specialization.cc ('k') | test/mjsunit/compiler/regress-669517.js » ('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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 std::unique_ptr<PipelineStatistics> pipeline_statistics_; 539 std::unique_ptr<PipelineStatistics> pipeline_statistics_;
540 PipelineData data_; 540 PipelineData data_;
541 PipelineImpl pipeline_; 541 PipelineImpl pipeline_;
542 Linkage* linkage_; 542 Linkage* linkage_;
543 543
544 DISALLOW_COPY_AND_ASSIGN(PipelineCompilationJob); 544 DISALLOW_COPY_AND_ASSIGN(PipelineCompilationJob);
545 }; 545 };
546 546
547 PipelineCompilationJob::Status PipelineCompilationJob::PrepareJobImpl() { 547 PipelineCompilationJob::Status PipelineCompilationJob::PrepareJobImpl() {
548 if (info()->shared_info()->asm_function()) { 548 if (info()->shared_info()->asm_function()) {
549 if (info()->osr_frame()) info()->MarkAsFrameSpecializing(); 549 if (info()->osr_frame() && !info()->is_optimizing_from_bytecode()) {
550 info()->MarkAsFrameSpecializing();
551 }
550 info()->MarkAsFunctionContextSpecializing(); 552 info()->MarkAsFunctionContextSpecializing();
551 } else { 553 } else {
552 if (!FLAG_always_opt) { 554 if (!FLAG_always_opt) {
553 info()->MarkAsBailoutOnUninitialized(); 555 info()->MarkAsBailoutOnUninitialized();
554 } 556 }
555 if (FLAG_turbo_loop_peeling) { 557 if (FLAG_turbo_loop_peeling) {
556 info()->MarkAsLoopPeelingEnabled(); 558 info()->MarkAsLoopPeelingEnabled();
557 } 559 }
558 } 560 }
559 if (info()->is_optimizing_from_bytecode() || 561 if (info()->is_optimizing_from_bytecode() ||
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1948 data->DeleteRegisterAllocationZone(); 1950 data->DeleteRegisterAllocationZone();
1949 } 1951 }
1950 1952
1951 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 1953 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
1952 1954
1953 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 1955 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
1954 1956
1955 } // namespace compiler 1957 } // namespace compiler
1956 } // namespace internal 1958 } // namespace internal
1957 } // namespace v8 1959 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-frame-specialization.cc ('k') | test/mjsunit/compiler/regress-669517.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698