[wasm] Fix test condition for lazy compilation
R=clemensb@chromium.org Bug: v8:12852 Change-Id: I3fbae50b164cca4ad1c0fefb856070ae2e472ff5 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3805059 Reviewed-by: Clemens Backes <clemensb@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/main@{#82180}
This commit is contained in:
parent
45059dc2b7
commit
7c5f378208
@ -324,7 +324,7 @@ ZoneBuffer GetValidCompiledModuleBytes(v8::Isolate* isolate, Zone* zone,
|
||||
WasmCodeRefScope code_ref_scope;
|
||||
std::vector<WasmCode*> all_code = native_module->SnapshotCodeTable();
|
||||
if (std::all_of(all_code.begin(), all_code.end(), [](const WasmCode* code) {
|
||||
return code->tier() == ExecutionTier::kTurbofan;
|
||||
return code && code->tier() == ExecutionTier::kTurbofan;
|
||||
})) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user