Commit d2a6e7b4 authored by yangguo@chromium.org's avatar yangguo@chromium.org

Fix test failures.

R=jkummerow@chromium.org
BUG=

Review URL: https://chromiumcodereview.appspot.com/11414030

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12992 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2f5c7685
...@@ -864,7 +864,10 @@ void Compiler::RecompileParallel(Handle<JSFunction> closure) { ...@@ -864,7 +864,10 @@ void Compiler::RecompileParallel(Handle<JSFunction> closure) {
{ {
CompilationHandleScope handle_scope(*info); CompilationHandleScope handle_scope(*info);
if (InstallCodeFromOptimizedCodeMap(*info)) return; if (!FLAG_manual_parallel_recompilation &&
InstallCodeFromOptimizedCodeMap(*info)) {
return;
}
if (ParserApi::Parse(*info, kNoParsingFlags)) { if (ParserApi::Parse(*info, kNoParsingFlags)) {
LanguageMode language_mode = info->function()->language_mode(); LanguageMode language_mode = info->function()->language_mode();
......
...@@ -7882,14 +7882,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InstallRecompiledCode) { ...@@ -7882,14 +7882,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InstallRecompiledCode) {
if (!V8::UseCrankshaft()) return isolate->heap()->undefined_value(); if (!V8::UseCrankshaft()) return isolate->heap()->undefined_value();
HandleScope handle_scope(isolate); HandleScope handle_scope(isolate);
ASSERT(FLAG_parallel_recompilation && FLAG_manual_parallel_recompilation); 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(); OptimizingCompilerThread* opt_thread = isolate->optimizing_compiler_thread();
if (!arg->IsJSFunction()) { Handle<SharedFunctionInfo> shared(fun->shared());
opt_thread->InstallOptimizedFunctions(); while (*opt_thread->InstallNextOptimizedFunction() != *shared) { }
} else if (!JSFunction::cast(*arg)->IsOptimized()) {
Handle<SharedFunctionInfo> shared(JSFunction::cast(*arg)->shared());
while (*opt_thread->InstallNextOptimizedFunction() != *shared) { }
}
return isolate->heap()->undefined_value(); return isolate->heap()->undefined_value();
} }
......
...@@ -75,6 +75,5 @@ assertUnoptimized(g); ...@@ -75,6 +75,5 @@ assertUnoptimized(g);
assertOptimized(f); assertOptimized(f);
assertUnoptimized(g); assertUnoptimized(g);
%InstallRecompiledCode("the rest"); %InstallRecompiledCode(g);
assertOptimized(g); assertOptimized(g);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment