Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(compiler): Inline all primitives #1076

Merged
merged 2 commits into from
Dec 31, 2021
Merged

Conversation

ospencer
Copy link
Member

Right now we only inline some primitives. This PR inlines them all. This also allows us to mostly remove the inline_wasm optimization, but we can't completely get rid of it because of --no-bulk-memory鈥攚e could, but that means we'd need to write the polyfill implementations of memory_fill and memory_copy in pure wasm in the compiler (which I didn't want to do right now 馃槄).

@ospencer ospencer requested a review from a team December 14, 2021 04:42
@ospencer ospencer self-assigned this Dec 14, 2021
Copy link
Member

@peblair peblair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this!

[arg],
) =>
transl_comp_expression({...e, exp_desc: TExpPrim1(Not, arg)})
| TExpApp({exp_desc: TExpIdent(_, _, {val_kind: TValPrim(prim)})}, args) =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃敟

Copy link
Member

@marcusroberts marcusroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but the low-level WASM I have to take on trust.

Base automatically changed from oscar/stabilize-snapshots to main December 31, 2021 17:28
@ospencer ospencer merged commit c227130 into main Dec 31, 2021
@ospencer ospencer deleted the oscar/inline-all-primitives branch December 31, 2021 18:01
@github-actions github-actions bot mentioned this pull request May 31, 2022
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.

None yet

3 participants