Skip to content

Provide support for proposalsΒ #367

@xtuc

Description

@xtuc

Continuing the discussion on Slack.

Here's a list of proposal that we mentioned.

Sign-extension operators

WebAssembly/design#1178

This impacts the wasm format and type-checker (validation), new instructions needs to be parsed/emitted and checked.

cc @maurobringolf

Multi-value

WebAssembly/design#1146

We can simulate multiple returns values using registers (globals). The transformation itself sounds trivial, but it may have some side effects. Our wast-parser and the typechecker should already work.

More information https://blog.scottlogic.com/2018/05/29/transpiling-webassembly.html

cc @ColinEberhardt

Import/Export of Mutable Globals

WebAssembly/design#1179

This is what is done in Webpack, we don't allow importing globals from JS. The transformation removes the imports and emit "managed" mutable globals instead.

While we can expect compiler to emit such code at the moment, we can do a smaller transformation in Webpack.

cc @xtuc

Other ideas

  • I64 lower to i32, i32?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions