Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index d999cd5034849f773774b5beff7efad3f892bee5..5dac6a1ada3454980e348caf6a76b8268d51ee0d 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1353,8 +1353,8 @@ Handle<JSObject> Factory::NewFunctionPrototype(Handle<JSFunction> function) { |
static bool ShouldOptimizeNewClosure(Isolate* isolate, |
Handle<SharedFunctionInfo> info) { |
- return isolate->use_crankshaft() && !info->is_toplevel() && |
- info->is_compiled() && info->allows_lazy_compilation(); |
+ return !info->is_toplevel() && info->is_compiled() && |
+ info->allows_lazy_compilation(); |
} |