Skip to content

Conversation

@kripken
Copy link
Member

@kripken kripken commented Nov 8, 2019

This is necessary if we want to pass it to wasm, where it will be called directly, without JS legalization. For example the JS dynamic loader in emscripten needs this, emscripten-core/emscripten#9562

@kripken
Copy link
Member Author

kripken commented Nov 9, 2019

Testing on emscripten, I noticed an issue that I fixed now: we don't want to export the original versions of dynCalls because they are only called by JS anyhow, and will not be used in the wasm table etc.

@kripken
Copy link
Member Author

kripken commented Nov 11, 2019

@sbc100 I had second thoughts here, and added a flag to the pass now. It seems bad to add more exports unnecessarily. With the flag, only if exported originals are asked for, are they exported. Emcc can pass that flag when doing dynamic linking, but doesn't need to otherwise, saving code size in the normal case. Thoughts?

Copy link
Member

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

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

SGTM

@kripken kripken merged commit e83a9e2 into master Nov 11, 2019
@kripken kripken deleted the orig branch November 11, 2019 23:39
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.

3 participants