Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 673bb23031733ad2c5acde104e94a256b5a9ea70..63b23796925f522efacbcfc336a2048cfa68b647 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -31,6 +31,7 @@ |
#include "debug.h" |
#include "execution.h" |
#include "factory.h" |
+#include "isolate-inl.h" |
#include "macro-assembler.h" |
#include "objects.h" |
#include "objects-visiting.h" |
@@ -660,7 +661,8 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( |
result->is_compiled() && |
!function_info->is_toplevel() && |
function_info->allows_lazy_compilation() && |
- !function_info->optimization_disabled()) { |
+ !function_info->optimization_disabled() && |
+ !isolate()->DebuggerHasBreakPoints()) { |
result->MarkForLazyRecompilation(); |
} |
return result; |