Open Bug 2033906 Opened 4 days ago Updated 2 days ago

Fix wasmExtractCode for lazy tiering

Categories

(Core :: JavaScript: WebAssembly, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: yury, Assigned: yury)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Currently, wasmExtractCode does not return anything for incomplete tier. It will be nice to have at least incomplete module dump for instrumentation and diagnostics.

Add Code::partialTierCodeBlock() which scans funcStates_ for the first
installed tier-2 CodeBlock. Module::extractCode falls back to it when
hasCompleteTier(Optimized) is false and the requested tier is Optimized.

Severity: -- → N/A
Priority: -- → P3

In lazy tiering each tiered-up function gets its own CodeBlock.
Add Code::allPartialTierCodeBlocks() to collect all distinct installed
tier-2 CodeBlocks, and refactor Module::extractCode to iterate over a
vector of blocks, concatenating their code and adjusting offsets.

Attachment #9572210 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: