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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for linear memory in the cheerp-genericjs target #232

Closed
wants to merge 4 commits into from

Conversation

yuri91
Copy link
Member

@yuri91 yuri91 commented May 30, 2024

No description provided.

yuri91 added 2 commits May 30, 2024 15:59
This was always just theoretical, and just a pain to support.
The result is mostly a simplification of GDA and the CheerpWriter, that
don't have to try and figure out if there is any linear memory used in
the module: if the target is cheerp-wasm, there is; otherwise, there
isn't.
The other main change is in the exceptions ABI, where
__cheerp_landingpad is not always in linear memory, but it's genericjs
for the cheerp-genericjs target. This required changing the fist field
from void* to int32, and casting appropriately.

TODO: frontend check to forbid use of the wasm attribute on the
cheerp-genericjs target
@yuri91 yuri91 requested a review from alexp-sssup May 30, 2024 14:11
@alexp-sssup
Copy link
Member

Merged, there was a conflict with the (now unneeded) recent fix for global delete

@alexp-sssup alexp-sssup closed this Jun 1, 2024
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.

2 participants