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

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

Issue 798873006: First simple implementation of class literals in TurboFan. (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/compiler/ast-graph-builder.cc ('k') | src/full-codegen.cc » ('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 <sstream> 8 #include <sstream>
9 9
10 #include "src/base/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // This list must be kept in sync with DisableTurbofan in ast-numbering.cc.
755 if (info()->function()->dont_optimize_reason() == kTryCatchStatement || 755 if (info()->function()->dont_optimize_reason() == kTryCatchStatement ||
756 info()->function()->dont_optimize_reason() == kTryFinallyStatement || 756 info()->function()->dont_optimize_reason() == kTryFinallyStatement ||
757 // TODO(turbofan): Make super work and remove this bailout. 757 // TODO(turbofan): Make super work and remove this bailout.
758 info()->function()->dont_optimize_reason() == kSuperReference || 758 info()->function()->dont_optimize_reason() == kSuperReference ||
759 // TODO(turbofan): Make class literals work and remove this bailout.
760 info()->function()->dont_optimize_reason() == kClassLiteral ||
761 // TODO(turbofan): Make OSR work with inner loops and remove this bailout. 759 // TODO(turbofan): Make OSR work with inner loops and remove this bailout.
762 (info()->is_osr() && !FLAG_turbo_osr)) { 760 (info()->is_osr() && !FLAG_turbo_osr)) {
763 return Handle<Code>::null(); 761 return Handle<Code>::null();
764 } 762 }
765 763
766 ZonePool zone_pool(isolate()); 764 ZonePool zone_pool(isolate());
767 SmartPointer<PipelineStatistics> pipeline_statistics; 765 SmartPointer<PipelineStatistics> pipeline_statistics;
768 766
769 if (FLAG_turbo_stats) { 767 if (FLAG_turbo_stats) {
770 pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool)); 768 pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool));
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 } 1081 }
1084 1082
1085 1083
1086 void Pipeline::TearDown() { 1084 void Pipeline::TearDown() {
1087 InstructionOperand::TearDownCaches(); 1085 InstructionOperand::TearDownCaches();
1088 } 1086 }
1089 1087
1090 } // namespace compiler 1088 } // namespace compiler
1091 } // namespace internal 1089 } // namespace internal
1092 } // namespace v8 1090 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698