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

Add post-emscripten-side-module pass argument #5274

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

sbc100
Copy link
Member

@sbc100 sbc100 commented Nov 17, 2022

In this mode we don't remove the start/stop_em_asm symbols or data. This is because with side modules we read this information directly from the wasm binaryen at runtime.

See emscripten-core/emscripten#18228

src/passes/Asyncify.cpp Outdated Show resolved Hide resolved
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

lgtm aside from that Asyncify issue. Let's see what happens with tests.

src/passes/Asyncify.cpp Outdated Show resolved Hide resolved
In this mode we don't remove the start/stop_em_asm symbols or data.
This is because with side modules we read this information directly
from the wasm binaryen at runtime.

See emscripten-core/emscripten#18228
@sbc100 sbc100 requested a review from kripken November 18, 2022 06:27
@sbc100 sbc100 merged commit 1500994 into main Nov 18, 2022
@sbc100 sbc100 deleted the post_emscripten_side_module branch November 18, 2022 18:49
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request Nov 19, 2022
The only way I could find to make work was to use `eval`.  Sadly even
using `new Function` didn't work since it evaluates the code not in the
containing (module) scope but in the global scope.

Depends on WebAssembly/binaryen#5274

Fixes: #18199
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request Nov 21, 2022
The only way I could find to make work was to use `eval`.  Sadly even
using `new Function` didn't work since it evaluates the code not in the
containing (module) scope but in the global scope.

Depends on WebAssembly/binaryen#5274

Fixes: #18199
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request Nov 22, 2022
The only way I could find to make work was to use `eval`.  Sadly even
using `new Function` didn't work since it evaluates the code not in the
containing (module) scope but in the global scope.

Depends on WebAssembly/binaryen#5274

Fixes: #18199
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request Nov 22, 2022
The only way I could find to make work was to use `eval`.  Sadly even
using `new Function` didn't work since it evaluates the code not in the
containing (module) scope but in the global scope.

Depends on WebAssembly/binaryen#5274

Fixes: #18199
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