Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 7c5d7df04366d65053a554cbd0f554c4729685d7..9b43a1f6e87dd9d4a9107cefd2b18d5c71e67281 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8154,6 +8154,10 @@ bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target, |
CompilationInfo target_info(&parse_info); |
Handle<SharedFunctionInfo> target_shared(target->shared()); |
+ if (target_shared->HasDebugInfo()) { |
+ TraceInline(target, caller, "target is being debugged"); |
+ return false; |
+ } |
if (!Compiler::ParseAndAnalyze(target_info.parse_info())) { |
if (target_info.isolate()->has_pending_exception()) { |
// Parse or scope error, never optimize this function. |