Skip to content

Add support for the component model map<K, V> type - #26

Open
Andrew Steurer (asteurer) wants to merge 3 commits into
wago-org:mainfrom
asteurer:map-type
Open

Andrew Steurer (asteurer) wants to merge 3 commits into
wago-org:mainfrom
asteurer:map-type

Conversation

@asteurer

Copy link
Copy Markdown
Contributor

Summary

Adds support for the component model map<K, V> type (defvaltype tag 0x63). The canonical ABI for map<K, V> is the same as for list<tuple<K, V>>, which meant that I was able to reuse/mirror much of the existing list code.

I confirmed everything works by running go test ./... in the root of the repo.

Conformance

  • Removed from xfail (passing): binary__binary__0090__L953, wasmtime map-types__0000__L3.
  • The implementation of the map type has exposed another gap in the plugin: the canon lift memory option from a different core instance is not honored. New entries for this have been added to xfail.

Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
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.

1 participant