| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 0a8fbebfb0cd0ae3c316438ae79d432d55818a71..a26e7befd22fd7a667a815ea8e860e0277a0dd96 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -3005,6 +3005,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ResumeJSGeneratorObject) {
|
| JavaScriptFrame* frame = stack_iterator.frame();
|
|
|
| ASSERT_EQ(frame->function(), generator_object->function());
|
| + ASSERT(frame->function()->is_compiled());
|
|
|
| STATIC_ASSERT(JSGeneratorObject::kGeneratorExecuting <= 0);
|
| STATIC_ASSERT(JSGeneratorObject::kGeneratorClosed <= 0);
|
| @@ -8488,8 +8489,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOptimizationStatus) {
|
| }
|
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
|
| if (FLAG_parallel_recompilation && sync_with_compiler_thread) {
|
| - while (function->IsMarkedForParallelRecompilation() ||
|
| - function->IsInRecompileQueue() ||
|
| + while (function->IsInRecompileQueue() ||
|
| function->IsMarkedForInstallingRecompiledCode()) {
|
| isolate->optimizing_compiler_thread()->InstallOptimizedFunctions();
|
| OS::Sleep(50);
|
|
|