| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index b06eec2a7bc27993f245f6b8ad5927c56a3b045e..57a010c3162076cd4183959d47d0a13c596281eb 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -936,7 +936,7 @@ MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) {
|
| Handle<Code> result;
|
| ASSIGN_RETURN_ON_EXCEPTION(isolate, result, GetUnoptimizedCode(&info), Code);
|
|
|
| - if (FLAG_always_opt) {
|
| + if (FLAG_always_opt && !info.shared_info()->HasAsmWasmData()) {
|
| Handle<Code> opt_code;
|
| if (GetOptimizedCode(function, Compiler::NOT_CONCURRENT)
|
| .ToHandle(&opt_code)) {
|
|
|