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

Side by Side Diff: src/compiler.cc

Issue 538613006: Remove redundant --always-full-compiler flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « no previous file | src/flag-definitions.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 DCHECK(!info()->IsCompilingForDebugging()); 314 DCHECK(!info()->IsCompilingForDebugging());
315 315
316 // We should never arrive here if there is no code object on the 316 // We should never arrive here if there is no code object on the
317 // shared function object. 317 // shared function object.
318 DCHECK(info()->shared_info()->code()->kind() == Code::FUNCTION); 318 DCHECK(info()->shared_info()->code()->kind() == Code::FUNCTION);
319 319
320 // We should never arrive here if optimization has been disabled on the 320 // We should never arrive here if optimization has been disabled on the
321 // shared function info. 321 // shared function info.
322 DCHECK(!info()->shared_info()->optimization_disabled()); 322 DCHECK(!info()->shared_info()->optimization_disabled());
323 323
324 // Fall back to using the full code generator if it's not possible
325 // to use the Hydrogen-based optimizing compiler. We already have
326 // generated code for this from the shared function object.
327 if (FLAG_always_full_compiler) return AbortOptimization();
328
329 // Do not use crankshaft if we need to be able to set break points. 324 // Do not use crankshaft if we need to be able to set break points.
330 if (isolate()->DebuggerHasBreakPoints()) { 325 if (isolate()->DebuggerHasBreakPoints()) {
331 return AbortOptimization(kDebuggerHasBreakPoints); 326 return AbortOptimization(kDebuggerHasBreakPoints);
332 } 327 }
333 328
334 // Limit the number of times we re-compile a functions with 329 // Limit the number of times we re-compile a functions with
335 // the optimizing compiler. 330 // the optimizing compiler.
336 const int kMaxOptCount = 331 const int kMaxOptCount =
337 FLAG_deopt_every_n_times == 0 ? FLAG_max_opt_count : 1000; 332 FLAG_deopt_every_n_times == 0 ? FLAG_max_opt_count : 1000;
338 if (info()->opt_count() > kMaxOptCount) { 333 if (info()->opt_count() > kMaxOptCount) {
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 AllowHandleDereference allow_deref; 1382 AllowHandleDereference allow_deref;
1388 bool tracing_on = info()->IsStub() 1383 bool tracing_on = info()->IsStub()
1389 ? FLAG_trace_hydrogen_stubs 1384 ? FLAG_trace_hydrogen_stubs
1390 : (FLAG_trace_hydrogen && 1385 : (FLAG_trace_hydrogen &&
1391 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1386 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1392 return (tracing_on && 1387 return (tracing_on &&
1393 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1388 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1394 } 1389 }
1395 1390
1396 } } // namespace v8::internal 1391 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698