Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1019)

Unified Diff: src/runtime.cc

Issue 11414030: Fix test failures. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.cc ('k') | test/mjsunit/manual-parallel-recompile.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « src/compiler.cc ('k') | test/mjsunit/manual-parallel-recompile.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698