Chromium Code Reviews

Unified Diff: src/compiler.cc

Issue 388233002: Version 3.27.34.6 (merged r22029) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.27
Patch Set: update test expectations Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/codegen.cc ('k') | src/objects.h » ('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 42fcc78406bfa945b9902df124372bab36928235..0d3f146ab007e3dd0bfc8e4c1c6179b1cb459ad6 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -297,8 +297,10 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() {
// generated code for this from the shared function object.
if (FLAG_always_full_compiler) return AbortOptimization();
- // Do not use crankshaft if compiling for debugging.
- if (info()->is_debug()) return AbortOptimization(kDebuggerIsActive);
+ // Do not use crankshaft if we need to be able to set break points.
+ if (isolate()->DebuggerHasBreakPoints()) {
+ return AbortOptimization(kDebuggerHasBreakPoints);
+ }
// Limit the number of times we re-compile a functions with
// the optimizing compiler.
« no previous file with comments | « src/codegen.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine