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

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

Issue 636883002: Add classes-related bailout reasons to DONT_TURBOFAN_NODE (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ast.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 <sstream> 7 #include <sstream>
8 8
9 #include "src/base/platform/elapsed-timer.h" 9 #include "src/base/platform/elapsed-timer.h"
10 #include "src/compiler/ast-graph-builder.h" 10 #include "src/compiler/ast-graph-builder.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 160
161 static void TraceSchedule(Schedule* schedule) { 161 static void TraceSchedule(Schedule* schedule) {
162 if (!FLAG_trace_turbo) return; 162 if (!FLAG_trace_turbo) return;
163 OFStream os(stdout); 163 OFStream os(stdout);
164 os << "-- Schedule --------------------------------------\n" << *schedule; 164 os << "-- Schedule --------------------------------------\n" << *schedule;
165 } 165 }
166 166
167 167
168 Handle<Code> Pipeline::GenerateCode() { 168 Handle<Code> Pipeline::GenerateCode() {
169 // This list must be kept in sync with DONT_TURBOFAN_NODE in ast.cc.
169 if (info()->function()->dont_optimize_reason() == kTryCatchStatement || 170 if (info()->function()->dont_optimize_reason() == kTryCatchStatement ||
170 info()->function()->dont_optimize_reason() == kTryFinallyStatement || 171 info()->function()->dont_optimize_reason() == kTryFinallyStatement ||
171 // TODO(turbofan): Make ES6 for-of work and remove this bailout. 172 // TODO(turbofan): Make ES6 for-of work and remove this bailout.
172 info()->function()->dont_optimize_reason() == kForOfStatement || 173 info()->function()->dont_optimize_reason() == kForOfStatement ||
173 // TODO(turbofan): Make super work and remove this bailout. 174 // TODO(turbofan): Make super work and remove this bailout.
174 info()->function()->dont_optimize_reason() == kSuperReference || 175 info()->function()->dont_optimize_reason() == kSuperReference ||
176 // TODO(turbofan): Make classliterals work and remove this bailout.
177 info()->function()->dont_optimize_reason() == kClassLiteral ||
175 // TODO(turbofan): Make OSR work and remove this bailout. 178 // TODO(turbofan): Make OSR work and remove this bailout.
176 info()->is_osr()) { 179 info()->is_osr()) {
177 return Handle<Code>::null(); 180 return Handle<Code>::null();
178 } 181 }
179 182
180 if (FLAG_turbo_stats) isolate()->GetTStatistics()->Initialize(info_); 183 if (FLAG_turbo_stats) isolate()->GetTStatistics()->Initialize(info_);
181 184
182 if (FLAG_trace_turbo) { 185 if (FLAG_trace_turbo) {
183 OFStream os(stdout); 186 OFStream os(stdout);
184 os << "---------------------------------------------------\n" 187 os << "---------------------------------------------------\n"
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 } 447 }
445 448
446 449
447 void Pipeline::TearDown() { 450 void Pipeline::TearDown() {
448 InstructionOperand::TearDownCaches(); 451 InstructionOperand::TearDownCaches();
449 } 452 }
450 453
451 } // namespace compiler 454 } // namespace compiler
452 } // namespace internal 455 } // namespace internal
453 } // namespace v8 456 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698