[Compiler] Don't mark asm-wasm functions for optimization in PostInstantiation.
Functions with asm-wasm data shouldn't be marked for optimization, since they will be optimized using the asm-wasm data instead. Review-Url: https://codereview.chromium.org/2537103002 Cr-Commit-Position: refs/heads/master@{#41367}
This commit is contained in:
parent
5e8b2b8077
commit
f8b8983962
@ -1193,9 +1193,11 @@ MaybeHandle<JSArray> Compiler::CompileForLiveEdit(Handle<Script> script) {
|
||||
bool Compiler::EnsureBytecode(CompilationInfo* info) {
|
||||
if (!info->shared_info()->is_compiled()) {
|
||||
if (GetUnoptimizedCode(info).is_null()) return false;
|
||||
if (info->shared_info()->HasAsmWasmData()) return false;
|
||||
}
|
||||
DCHECK(info->shared_info()->is_compiled());
|
||||
|
||||
if (info->shared_info()->HasAsmWasmData()) return false;
|
||||
|
||||
DCHECK_EQ(ShouldUseIgnition(info), info->shared_info()->HasBytecodeArray());
|
||||
return info->shared_info()->HasBytecodeArray();
|
||||
}
|
||||
@ -1711,6 +1713,7 @@ void Compiler::PostInstantiation(Handle<JSFunction> function,
|
||||
Handle<SharedFunctionInfo> shared(function->shared());
|
||||
|
||||
if (FLAG_always_opt && shared->allows_lazy_compilation() &&
|
||||
!function->shared()->HasAsmWasmData() &&
|
||||
function->shared()->is_compiled()) {
|
||||
function->MarkForOptimization();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user