Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: src/factory.cc

Issue 10417010: Run Crankshaft on a separate thread. (Closed) Base URL: https://chromiumcodereview.appspot.com/10387157
Patch Set: Set optimize_in_parallel to false by default. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/factory.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 6bb7893746d794b7654e1fb7dfd85aaf8f9fe569..3ba1819729b433d8185a7394904475dbd2ae5320 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -568,7 +568,11 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
!function_info->is_toplevel() &&
function_info->allows_lazy_compilation() &&
!function_info->optimization_disabled()) {
- result->MarkForLazyRecompilation();
+ if (FLAG_optimize_in_parallel) {
+ result->RecompileInParallel();
+ } else {
+ result->MarkForLazyRecompilation();
+ }
}
return result;
}
@@ -1446,4 +1450,10 @@ Handle<Object> Factory::ToBoolean(bool value) {
}
+void Factory::CompileJSFunction(Handle<JSFunction> function) {
+ CALL_HEAP_FUNCTION_VOID(isolate(),
+ Runtime::CompileJSFunction(isolate(), function));
+}
+
+
} } // namespace v8::internal
« no previous file with comments | « src/factory.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698