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

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

Issue 826833004: Remove distinction between DisableTurbofan and DisableCrankshaft. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 11 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/ast-numbering.cc ('k') | no next file » | 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 <sstream> 8 #include <sstream>
9 9
10 #include "src/base/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 if (FLAG_trace_turbo) { 744 if (FLAG_trace_turbo) {
745 Run<PrintGraphPhase>(phase); 745 Run<PrintGraphPhase>(phase);
746 } 746 }
747 if (FLAG_turbo_verify) { 747 if (FLAG_turbo_verify) {
748 Run<VerifyGraphPhase>(untyped); 748 Run<VerifyGraphPhase>(untyped);
749 } 749 }
750 } 750 }
751 751
752 752
753 Handle<Code> Pipeline::GenerateCode() { 753 Handle<Code> Pipeline::GenerateCode() {
754 // This list must be kept in sync with DisableTurbofan in ast-numbering.cc. 754 // TODO(turbofan): Make OSR work with inner loops and remove this bailout.
755 if (info()->function()->dont_optimize_reason() == kTryCatchStatement || 755 if (info()->is_osr() && !FLAG_turbo_osr) return Handle<Code>::null();
756 info()->function()->dont_optimize_reason() == kTryFinallyStatement ||
757 // TODO(turbofan): Make super work and remove this bailout.
758 info()->function()->dont_optimize_reason() == kSuperReference ||
759 // TODO(turbofan): Make OSR work with inner loops and remove this bailout.
760 (info()->is_osr() && !FLAG_turbo_osr)) {
761 return Handle<Code>::null();
762 }
763 756
764 ZonePool zone_pool(isolate()); 757 ZonePool zone_pool(isolate());
765 SmartPointer<PipelineStatistics> pipeline_statistics; 758 SmartPointer<PipelineStatistics> pipeline_statistics;
766 759
767 if (FLAG_turbo_stats) { 760 if (FLAG_turbo_stats) {
768 pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool)); 761 pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool));
769 pipeline_statistics->BeginPhaseKind("initializing"); 762 pipeline_statistics->BeginPhaseKind("initializing");
770 } 763 }
771 764
772 PipelineData data(&zone_pool, info()); 765 PipelineData data(&zone_pool, info());
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 } 1074 }
1082 1075
1083 1076
1084 void Pipeline::TearDown() { 1077 void Pipeline::TearDown() {
1085 InstructionOperand::TearDownCaches(); 1078 InstructionOperand::TearDownCaches();
1086 } 1079 }
1087 1080
1088 } // namespace compiler 1081 } // namespace compiler
1089 } // namespace internal 1082 } // namespace internal
1090 } // namespace v8 1083 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast-numbering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698