Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index afcc84d606601d4f21d5d75fa611b3aa48bcac50..5464ba0adc08b697045004c46bd9833f7cf7370d 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -5,6 +5,7 @@ |
#include "src/factory.h" |
#include "src/allocation-site-scopes.h" |
+#include "src/bootstrapper.h" |
#include "src/conversions.h" |
#include "src/isolate-inl.h" |
#include "src/macro-assembler.h" |
@@ -1372,7 +1373,7 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( |
if (isolate()->use_crankshaft() && |
FLAG_always_opt && |
result->is_compiled() && |
- !info->is_toplevel() && |
+ !isolate()->bootstrapper()->IsActive() && |
titzer
2014/07/28 09:56:10
Comment me, TODO me?
Michael Starzinger
2014/07/28 15:10:51
Done.
|
info->allows_lazy_compilation() && |
!info->optimization_disabled() && |
!isolate()->DebuggerHasBreakPoints()) { |