Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 9683a83d68dc7b5c6c6132ce98b30d934476f05f..4b96dd300ace84630ee860b101333ebf51ef1c10 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -607,6 +607,11 @@ PipelineCompilationJob::Status PipelineCompilationJob::CreateGraphImpl() { |
if (!Compiler::EnsureDeoptimizationSupport(info())) return FAILED; |
} |
+ // TODO(mstarzinger): Hack to ensure that the ToNumber call descriptor is |
+ // initialized on the main thread, since it is needed off-thread by the |
+ // effect control linearizer. |
+ CodeFactory::ToNumber(info()->isolate()); |
+ |
linkage_ = new (&zone_) Linkage(Linkage::ComputeIncoming(&zone_, info())); |
if (!pipeline_.CreateGraph()) { |