[turbofan] Only compile hot asm functions with TurboFan if --turbo-osr flag is turned on.
R=bmeurer@chromium.org Review URL: https://codereview.chromium.org/951053002 Cr-Commit-Position: refs/heads/master@{#26832}
This commit is contained in:
parent
89731cfbf8
commit
fbb26b21c8
@ -501,6 +501,11 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() {
|
|||||||
if (info()->is_osr()) os << " OSR";
|
if (info()->is_osr()) os << " OSR";
|
||||||
os << "]" << std::endl;
|
os << "]" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (info()->shared_info()->asm_function()) {
|
||||||
|
info()->MarkAsContextSpecializing();
|
||||||
|
}
|
||||||
|
|
||||||
Timer t(this, &time_taken_to_create_graph_);
|
Timer t(this, &time_taken_to_create_graph_);
|
||||||
compiler::Pipeline pipeline(info());
|
compiler::Pipeline pipeline(info());
|
||||||
pipeline.GenerateCode();
|
pipeline.GenerateCode();
|
||||||
@ -930,7 +935,8 @@ MaybeHandle<Code> Compiler::GetLazyCode(Handle<JSFunction> function) {
|
|||||||
// If the debugger is active, do not compile with turbofan unless we can
|
// If the debugger is active, do not compile with turbofan unless we can
|
||||||
// deopt from turbofan code.
|
// deopt from turbofan code.
|
||||||
if (FLAG_turbo_asm && function->shared()->asm_function() &&
|
if (FLAG_turbo_asm && function->shared()->asm_function() &&
|
||||||
(FLAG_turbo_deoptimization || !isolate->debug()->is_active())) {
|
(FLAG_turbo_deoptimization || !isolate->debug()->is_active()) &&
|
||||||
|
!FLAG_turbo_osr) {
|
||||||
CompilationInfoWithZone info(function);
|
CompilationInfoWithZone info(function);
|
||||||
|
|
||||||
VMState<COMPILER> state(isolate);
|
VMState<COMPILER> state(isolate);
|
||||||
|
Loading…
Reference in New Issue
Block a user