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

Unified Diff: src/compiler.cc

Issue 356713004: Compile optimized code with active debugger but no break points. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/codegen.cc ('k') | test/mjsunit/debug-compile-optimized.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index f471224b42c5430f7f2c551efe569f0e10609990..7b4afe375f9e5346ddf8da8ea38423b46ded7344 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -307,7 +307,9 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() {
if (FLAG_always_full_compiler) return AbortOptimization();
// Do not use crankshaft if compiling for debugging.
- if (info()->is_debug()) return AbortOptimization(kDebuggerIsActive);
+ if (isolate()->DebuggerHasBreakPoints()) {
+ return AbortOptimization(kDebuggerIsActive);
+ }
// Limit the number of times we re-compile a functions with
// the optimizing compiler.
« no previous file with comments | « src/codegen.cc ('k') | test/mjsunit/debug-compile-optimized.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698