Commit 099189f4 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[compiler] Simplify GetLazyCode for asm functions.

R=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/1868553003

Cr-Commit-Position: refs/heads/master@{#35323}
parent b4edd2f6
......@@ -1099,20 +1099,11 @@ MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) {
if (FLAG_turbo_asm && function->shared()->asm_function() &&
(FLAG_turbo_asm_deoptimization || !isolate->debug()->is_active()) &&
!FLAG_turbo_osr) {
CompilationInfoWithZone info(function);
VMState<COMPILER> state(isolate);
PostponeInterruptsScope postpone(isolate);
info.SetOptimizing();
if (GetOptimizedCodeNow(&info)) {
Handle<Code> code;
if (GetOptimizedCode(function, Compiler::NOT_CONCURRENT).ToHandle(&code)) {
DCHECK(function->shared()->is_compiled());
return info.code();
return code;
}
// We have failed compilation. If there was an exception clear it so that
// we can compile unoptimized code.
if (isolate->has_pending_exception()) isolate->clear_pending_exception();
}
if (function->shared()->is_compiled()) {
......
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