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

Side by Side Diff: src/compiler.cc

Issue 498243002: Bring back test coverage for baseline TurboFan. (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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 // Check the whitelist for TurboFan. 407 // Check the whitelist for TurboFan.
408 if (info()->closure()->PassesFilter(FLAG_turbo_filter) && 408 if (info()->closure()->PassesFilter(FLAG_turbo_filter) &&
409 // TODO(turbofan): Make try-catch work and remove this bailout. 409 // TODO(turbofan): Make try-catch work and remove this bailout.
410 info()->function()->dont_optimize_reason() != kTryCatchStatement && 410 info()->function()->dont_optimize_reason() != kTryCatchStatement &&
411 info()->function()->dont_optimize_reason() != kTryFinallyStatement && 411 info()->function()->dont_optimize_reason() != kTryFinallyStatement &&
412 // TODO(turbofan): Make OSR work and remove this bailout. 412 // TODO(turbofan): Make OSR work and remove this bailout.
413 !info()->is_osr()) { 413 !info()->is_osr()) {
414 compiler::Pipeline pipeline(info()); 414 compiler::Pipeline pipeline(info());
415 pipeline.GenerateCode(); 415 pipeline.GenerateCode();
416 if (!info()->code().is_null()) { 416 if (!info()->code().is_null()) {
417 info()->context()->native_context()->AddOptimizedCode(*info()->code()); 417 if (FLAG_turbo_deoptimization) {
418 info()->context()->native_context()->AddOptimizedCode(*info()->code());
419 }
418 return SetLastStatus(SUCCEEDED); 420 return SetLastStatus(SUCCEEDED);
419 } 421 }
420 } 422 }
421 423
422 if (FLAG_trace_hydrogen) { 424 if (FLAG_trace_hydrogen) {
423 Handle<String> name = info()->function()->debug_name(); 425 Handle<String> name = info()->function()->debug_name();
424 PrintF("-----------------------------------------------------------\n"); 426 PrintF("-----------------------------------------------------------\n");
425 PrintF("Compiling method %s using hydrogen\n", name->ToCString().get()); 427 PrintF("Compiling method %s using hydrogen\n", name->ToCString().get());
426 isolate()->GetHTracer()->TraceCompilation(info()); 428 isolate()->GetHTracer()->TraceCompilation(info());
427 } 429 }
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 AllowHandleDereference allow_deref; 1382 AllowHandleDereference allow_deref;
1381 bool tracing_on = info()->IsStub() 1383 bool tracing_on = info()->IsStub()
1382 ? FLAG_trace_hydrogen_stubs 1384 ? FLAG_trace_hydrogen_stubs
1383 : (FLAG_trace_hydrogen && 1385 : (FLAG_trace_hydrogen &&
1384 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1386 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1385 return (tracing_on && 1387 return (tracing_on &&
1386 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);
1387 } 1389 }
1388 1390
1389 } } // 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