Skip to content

[Memory64] preamble JS changes for 64-bit - #15225

Merged
aardappel merged 1 commit into
emscripten-core:mainfrom
aardappel:b8
Oct 7, 2021
Merged

[Memory64] preamble JS changes for 64-bit#15225
aardappel merged 1 commit into
emscripten-core:mainfrom
aardappel:b8

Conversation

@aardappel

Copy link
Copy Markdown
Collaborator

No description provided.

@aardappel
aardappel requested a review from kripken October 4, 2021 23:15

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm % comment

Comment thread src/preamble.js
(function(name) {
var original = exports[name];
var replacement = original;
if (name === 'stackAlloc' || name === 'malloc') {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This method won't work if we minify the names of exports, which we do in -O3 etc. For now, please add a comment // TODO: support minified export names, and in a later PR we should disable that minification for MEMORY64 for now (that would be in minify_wasm_imports_and_exports in tools/building.py)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ok, will do.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Addressed here: #15305

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