Paint the tree green after r22666.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 29 Jul 2014 12:57:25 +0000 (12:57 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 29 Jul 2014 12:57:25 +0000 (12:57 +0000)
R=ishell@chromium.org

Review URL: https://codereview.chromium.org/428903002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22669 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/factory.cc

index cbb6ca301a86411bbd101a9eb1fffaaebf0985e2..94da1681af27527728e7a40fb72a681cbe2f56f6 100644 (file)
@@ -1373,6 +1373,7 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
   if (isolate()->use_crankshaft() &&
       FLAG_always_opt &&
       result->is_compiled() &&
+      !info->is_toplevel() &&
       // TODO(mstarzinger): Extend to optimization of builtin code.
       !isolate()->bootstrapper()->IsActive() &&
       info->allows_lazy_compilation() &&