| Index: src/runtime/runtime-compiler.cc
|
| diff --git a/src/runtime/runtime-compiler.cc b/src/runtime/runtime-compiler.cc
|
| index d8512fdfb540b546badd2fe7e72303fd629ce27f..16175803f05a76d91b2ccdb9515b2ba0c39d26f3 100644
|
| --- a/src/runtime/runtime-compiler.cc
|
| +++ b/src/runtime/runtime-compiler.cc
|
| @@ -232,8 +232,9 @@ RUNTIME_FUNCTION(Runtime_CompileForOnStackReplacement) {
|
| // Gate the OSR entry with a stack check.
|
| BackEdgeTable::AddStackCheck(caller_code, pc_offset);
|
| // Poll already queued compilation jobs.
|
| - OptimizingCompilerThread* thread = isolate->optimizing_compiler_thread();
|
| - if (thread->IsQueuedForOSR(function, ast_id)) {
|
| + OptimizingCompileDispatcher* dispatcher =
|
| + isolate->optimizing_compile_dispatcher();
|
| + if (dispatcher->IsQueuedForOSR(function, ast_id)) {
|
| if (FLAG_trace_osr) {
|
| PrintF("[OSR - Still waiting for queued: ");
|
| function->PrintName();
|
| @@ -242,7 +243,7 @@ RUNTIME_FUNCTION(Runtime_CompileForOnStackReplacement) {
|
| return NULL;
|
| }
|
|
|
| - job = thread->FindReadyOSRCandidate(function, ast_id);
|
| + job = dispatcher->FindReadyOSRCandidate(function, ast_id);
|
| }
|
|
|
| if (job != NULL) {
|
| @@ -324,7 +325,7 @@ RUNTIME_FUNCTION(Runtime_TryInstallOptimizedCode) {
|
| return isolate->StackOverflow();
|
| }
|
|
|
| - isolate->optimizing_compiler_thread()->InstallOptimizedFunctions();
|
| + isolate->optimizing_compile_dispatcher()->InstallOptimizedFunctions();
|
| return (function->IsOptimized()) ? function->code()
|
| : function->shared()->code();
|
| }
|
|
|