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

Generate accurate import names in emitDCEGraph #21814

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Apr 23, 2024

This avoid the receiving code having to attempt to demangle them by removing leading underscore.

The other advantage of this method is that allows for JS and native names to differ in other ways (not only the leading underscore). For example, wasmMemory vs memory and wasmTable vs __indirect_function_table.

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.

Nice!

This avoid the receiving code having to attempt to demangle them by
removing leading underscore.

The other advantage of this method is that allows for JS and native
names to differ in other ways (not only the leading underscore).  For
example, `wasmMemory` vs `memory` and `wasmTable` vs
`__indirect_function_table`.
@sbc100 sbc100 disabled auto-merge April 24, 2024 21:10
@sbc100 sbc100 merged commit b760788 into emscripten-core:main Apr 24, 2024
27 of 29 checks passed
@sbc100 sbc100 deleted the emitDCEGraph branch April 24, 2024 21:10
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