Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 825bd5be312a47e263cf6bd92afa1b363619dece..567a90ba7689d6543f06e6aa566c7f32dfe552bc 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -8013,14 +8013,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InstallRecompiledCode) { |
if (!V8::UseCrankshaft()) return isolate->heap()->undefined_value(); |
HandleScope handle_scope(isolate); |
ASSERT(FLAG_parallel_recompilation && FLAG_manual_parallel_recompilation); |
- CONVERT_ARG_HANDLE_CHECKED(HeapObject, arg, 0); |
+ CONVERT_ARG_HANDLE_CHECKED(JSFunction, fun, 0); |
OptimizingCompilerThread* opt_thread = isolate->optimizing_compiler_thread(); |
- if (!arg->IsJSFunction()) { |
- opt_thread->InstallOptimizedFunctions(); |
- } else if (!JSFunction::cast(*arg)->IsOptimized()) { |
- Handle<SharedFunctionInfo> shared(JSFunction::cast(*arg)->shared()); |
- while (*opt_thread->InstallNextOptimizedFunction() != *shared) { } |
- } |
+ Handle<SharedFunctionInfo> shared(fun->shared()); |
+ while (*opt_thread->InstallNextOptimizedFunction() != *shared) { } |
return isolate->heap()->undefined_value(); |
} |