Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Mar 18, 2024

We continue to use the JS names when calling from JS code but use prefixed, native symbol names for the native implementation.

I'm hoping we can eventually completely remove the WASM_SYSTEM_EXPORTS special casing.

@sbc100 sbc100 requested a review from kripken March 18, 2024 20:02
@sbc100 sbc100 force-pushed the stack_functions branch 3 times, most recently from 351ca40 to fdc7de5 Compare March 19, 2024 21:29
@sbc100 sbc100 enabled auto-merge (squash) March 19, 2024 21:30
@sbc100
Copy link
Collaborator Author

sbc100 commented Mar 19, 2024

All the apparent regression in wasm code size in this PR are because we don't enable minifiction of import/export names in the metadce tests, so they are sensitive the length of the function names. However, in normal -Oz or -O3 builds these get minified.

@sbc100 sbc100 disabled auto-merge March 20, 2024 00:21
@sbc100 sbc100 force-pushed the stack_functions branch 4 times, most recently from c8acb8a to acb63c8 Compare March 20, 2024 17:52
We continue to use the JS names when calling from JS code but use
prefixed, native symbol names for the native implementation.

I'm hoping we can eventually completely remove the `WASM_SYSTEM_EXPORTS`
special casing.
@sbc100 sbc100 enabled auto-merge (squash) March 20, 2024 19:06
@sbc100 sbc100 merged commit faee8d3 into emscripten-core:main Mar 20, 2024
@sbc100 sbc100 deleted the stack_functions branch March 20, 2024 20:19
sbc100 added a commit to sbc100/emscripten that referenced this pull request Mar 21, 2024
Followup to emscripten-core#21555

In addition to helping avoid symbol collisions this has the great
side effect that we can now completely remove the `WASM_SYSTEM_EXPORTS`
special casing which simplifies the code in bunch of places.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Mar 21, 2024
Followup to emscripten-core#21555

In addition to helping avoid symbol collisions this has the great
side effect that we can now completely remove the `WASM_SYSTEM_EXPORTS`
special casing which simplifies the code in bunch of places.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Mar 22, 2024
Followup to emscripten-core#21555

In addition to helping avoid symbol collisions this has the great
side effect that we can now completely remove the `WASM_SYSTEM_EXPORTS`
special casing which simplifies the code in bunch of places.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Mar 22, 2024
Followup to emscripten-core#21555

In addition to helping avoid symbol collisions this has the great
side effect that we can now completely remove the `WASM_SYSTEM_EXPORTS`
special casing which simplifies the code in bunch of places.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Mar 22, 2024
Followup to emscripten-core#21555

In addition to helping avoid symbol collisions this has the great
side effect that we can now completely remove the `WASM_SYSTEM_EXPORTS`
special casing which simplifies the code in bunch of places.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Mar 22, 2024
Followup to emscripten-core#21555

In addition to helping avoid symbol collisions this has the great
side effect that we can now completely remove the `WASM_SYSTEM_EXPORTS`
special casing which simplifies the code in bunch of places.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Mar 23, 2024
Followup to emscripten-core#21555

In addition to helping avoid symbol collisions this has the great
side effect that we can now completely remove the `WASM_SYSTEM_EXPORTS`
special casing which simplifies the code in bunch of places.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Mar 23, 2024
Followup to emscripten-core#21555

In addition to helping avoid symbol collisions this has the great
side effect that we can now completely remove the `WASM_SYSTEM_EXPORTS`
special casing which simplifies the code in bunch of places.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Mar 25, 2024
Followup to emscripten-core#21555

In addition to helping avoid symbol collisions this has the great
side effect that we can now completely remove the `WASM_SYSTEM_EXPORTS`
special casing which simplifies the code in bunch of places.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Mar 25, 2024
Followup to emscripten-core#21555

In addition to helping avoid symbol collisions this has the great
side effect that we can now completely remove the `WASM_SYSTEM_EXPORTS`
special casing which simplifies the code in bunch of places.
sbc100 added a commit that referenced this pull request Mar 25, 2024
Followup to #21555

In addition to helping avoid symbol collisions this has the great
side effect that we can now completely remove the `WASM_SYSTEM_EXPORTS`
special casing which simplifies the code in bunch of places.
mathetake pushed a commit to wazero/wazero that referenced this pull request Jul 19, 2024
This update the imports/emscripten package implementation
so that it can support v3.1.57+ which came with a breaking
change: emscripten-core/emscripten#21555

Signed-off-by: Jeroen Bobbeldijk <[email protected]>
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