Index: src/optimizing-compile-dispatcher.cc |
diff --git a/src/optimizing-compile-dispatcher.cc b/src/optimizing-compile-dispatcher.cc |
index 707733947ba6ac5c8eaa66e325ca6a17d0c82163..c3ec835ff9a04d58f0787d22566274ecbaabbd0b 100644 |
--- a/src/optimizing-compile-dispatcher.cc |
+++ b/src/optimizing-compile-dispatcher.cc |
@@ -19,6 +19,10 @@ void DisposeCompilationJob(CompilationJob* job, bool restore_function_code) { |
if (restore_function_code) { |
Handle<JSFunction> function = job->info()->closure(); |
function->ReplaceCode(function->shared()->code()); |
+ // TODO(mvstanton): We can't call ensureliterals here due to allocation, |
+ // but we probably shouldn't call ReplaceCode either, as this |
+ // sometimes runs on the worker thread! |
+ // JSFunction::EnsureLiterals(function); |
} |
delete job; |
} |