Skip to content

Add some support for imported memories to generated DWARF#8740

Merged
fitzgen merged 1 commit intobytecodealliance:mainfrom
alexcrichton:dwarf-imported-memory
Jun 5, 2024
Merged

Add some support for imported memories to generated DWARF#8740
fitzgen merged 1 commit intobytecodealliance:mainfrom
alexcrichton:dwarf-imported-memory

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This is more-or-less a prerequisite for #8652 and extends the generated dwarf with expressions to not only dereference owned memories but additionally imported memories which involve some extra address calculations to be emitted in the dwarf.

This is more-or-less a prerequisite for bytecodealliance#8652 and extends the generated
dwarf with expressions to not only dereference owned memories but
additionally imported memories which involve some extra address
calculations to be emitted in the dwarf.
@alexcrichton alexcrichton requested a review from a team as a code owner June 3, 2024 23:04
@alexcrichton alexcrichton requested review from pchickey and removed request for a team June 3, 2024 23:04
@fitzgen fitzgen added this pull request to the merge queue Jun 5, 2024
Merged via the queue into bytecodealliance:main with commit fcf1054 Jun 5, 2024
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Jun 5, 2024
This commit resolves an assert in the dwarf generating of core wasm
modules when the module has a defined linear memory which is flagged
`shared`. This is represented slightly differently in the `VMContext`
than owned memories that aren't `shared`, and looks more like an
imported memory. With support in bytecodealliance#8740 it's now much easier to support
this.

Closes bytecodealliance#8652
github-merge-queue Bot pushed a commit that referenced this pull request Jun 6, 2024
This commit resolves an assert in the dwarf generating of core wasm
modules when the module has a defined linear memory which is flagged
`shared`. This is represented slightly differently in the `VMContext`
than owned memories that aren't `shared`, and looks more like an
imported memory. With support in #8740 it's now much easier to support
this.

Closes #8652
@alexcrichton alexcrichton deleted the dwarf-imported-memory branch June 14, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants