Skip to content

Multi value - #3055

Open
JairusSW wants to merge 7 commits into
AssemblyScript:mainfrom
JairusSW:multi-value
Open

JairusSW wants to merge 7 commits into
AssemblyScript:mainfrom
JairusSW:multi-value

Conversation

@JairusSW

Copy link
Copy Markdown
Member

This PR adds basic support for the Multi-Value Proposal. For a tuple type to be considered for multi-value, it must be explicitly marked with readonly first.

Related: #1633 #1425

I accidentally closed #3021 by overwriting history on my fork. Re-opening here. Refer to #3021 for prior discussion

So far, this adds basic compiler/binaryen support for outputting multi-value returns, but does not support things like indexing yet

I'm thinking that the next PR should add support type checking for tuples/multi-values, support indexing, and add an SROA pass to identify array literals vs tuples. After that, full support for tuples probably based off of warpo's implementation

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

This branch has not been deployed

No deployments
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