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

Unified Diff: src/objects.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/objects.h ('k') | src/optimizing-compiler-thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index cb87c71fb1193c38953701a88ffac4e1f465d9cd..88a485e999a817b48d820e451eb1f4d635f04cb6 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -7314,6 +7314,14 @@ void JSFunction::MarkForLazyRecompilation() {
}
+void JSFunction::RecompileInParallel() {
+ ASSERT(FLAG_optimize_in_parallel);
+ i::Handle<JSFunction> handle(reinterpret_cast<JSFunction **>(
+ GetIsolate()->global_handles()->Create(this).location()));
+ GetIsolate()->queue_for_optimization(handle);
+}
+
+
bool SharedFunctionInfo::EnsureCompiled(Handle<SharedFunctionInfo> shared,
ClearExceptionFlag flag) {
return shared->is_compiled() || CompileLazy(shared, flag);
« no previous file with comments | « src/objects.h ('k') | src/optimizing-compiler-thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698