-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add support for map type #12216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
alexcrichton
merged 26 commits into
bytecodealliance:main
from
yordis:yordis/feat-map-support
Mar 9, 2026
+2,567
−105
Merged
Add support for map type #12216
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
04b6bad
Add support for map type
yordis bae8fdc
Add Map and MapEntry classes to support key/value pairs in component …
yordis 3aaf4dc
Add wasm_component_model_map configuration support
yordis ef3df6d
Format code
yordis 153c168
Format C code
yordis f00aedd
Enhance component model to support HashMap<K, V> type
yordis 890a2c9
Refactor component configuration to introduce map support
yordis c05f4ab
Add new WAST test for map types and remove map type definitions from …
yordis a219108
Update component fuzzing and dynamic tests to replace call_and_post_r…
yordis 59f95f3
Format code
yordis 33891f4
Refactor HashMap usage in typed.rs to use wasmtime_environ collections
yordis d02a7f8
Fix HashMap initialization and insertion to handle potential errors i…
yordis a40bb64
Refactor HashMap handling in typed.rs to use lower_map_iter for impro…
yordis b80b41a
Fix map adapter trampoline compilation and alignment bugs
yordis db1f816
Refactor map entry layout calculations to use canonical ABI
yordis 504c7eb
Remove unnecessary clone of map pairs during lowering
yordis 1097cda
Deduplicate map lift logic between HashMap implementations
yordis cd97d70
Deduplicate list and map sequence translation scaffolding
yordis d48daf5
Fix cargo fmt formatting issues
yordis 24c75e0
Deduplicate map typecheck logic
yordis 9f860ff
Deduplicate map lowering with linear_lower_map_to_flat and linear_low…
yordis 1d6ca26
Clean up lift_try_map: use drop, move TryHashMap import to module scope
yordis 3c87977
Fix CI: arbtest overflow and no-std HashMap lift_map
yordis 12ed288
Store map tuple layout in TypeMap
yordis b94eac8
Refactor map ABI argument passing
yordis 36008b6
Fix CI: enable component_model_map in fuzzing and handle map in arbit…
yordis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.