Stream: git-wasmtime

Topic: wasmtime / PR #9700 [NativeAOT-LLVM] Synthetic type centr...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 01 2024 at 21:06):

SingleAccretion opened PR #9700 from SingleAccretion:DI-Synth to bytecodealliance:main:

The DWARF transform needs to add some "synthetic" types to the output, manly to represent the VMContext structure.

So far, these types were being added to each CU, which is unnecessary overhead since they're exactly the same in each CU in a given module.

This change moves them to a single per-module CU that is references via DWARF's DW_FORM_ref_addr mechanism.

This is an optimization in both time (the debugger needs fewer types to keep track of) and space (the .debug_info section ~5% smaller on some DWARF input I have).

view this post on Zulip Wasmtime GitHub notifications bot (Dec 01 2024 at 21:07):

SingleAccretion submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 01 2024 at 21:07):

SingleAccretion created PR review comment:

Below code was simply moved from utils.rs without functional changes.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 01 2024 at 21:07):

SingleAccretion edited PR review comment.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 01 2024 at 21:10):

SingleAccretion submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 01 2024 at 21:10):

SingleAccretion created PR review comment:

Since all of the remaining wasm_types are module-invariant, there is no longer a need for them to be per-module.


Last updated: Dec 23 2024 at 12:05 UTC