Skip to content

[Memory64] wasi JS changes for 64-bit - #15224

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

[Memory64] wasi JS changes for 64-bit#15224
aardappel merged 1 commit into
emscripten-core:mainfrom
aardappel:b7

Conversation

@aardappel

Copy link
Copy Markdown
Collaborator

No description provided.

@aardappel
aardappel requested a review from kripken October 4, 2021 23:13
Comment thread src/library_wasi.js Outdated
Comment thread src/library_wasi.js Outdated
$flush_NO_FILESYSTEM: function() {
// flush anything remaining in the buffers during shutdown
if (typeof _fflush !== 'undefined') _fflush(0);
if (typeof _fflush !== 'undefined') _fflush({{{ sizeT(0) }}});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do you have pointerT already? (fflush takes a pointer) (if not its probably not worth adding it for this one place).

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.

renamed it, since this seemed the only use of the function.

@aardappel
aardappel enabled auto-merge (squash) October 7, 2021 21:46
@aardappel
aardappel merged commit 8be5c1d into emscripten-core:main Oct 7, 2021
Comment thread src/library_wasi.js
Comment thread src/library_wasi.js
Comment thread src/library_wasi.js
var ptr = {{{ makeGetValue('iov', 'i*8', 'i32') }}};
var len = {{{ makeGetValue('iov', 'i*8 + 4', 'i32') }}};
var ptr = {{{ makeGetValue('iov', `i*${Runtime.POINTER_SIZE}*2`, `${POINTER_TYPE}`) }}};
var len = {{{ makeGetValue('iov', `i*${Runtime.POINTER_SIZE}*2 + ${Runtime.POINTER_SIZE}`, `${POINTER_TYPE}`) }}};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should probably be using C_STRUCTS stuff here.. I can look into that as a followup.

@aardappel

Copy link
Copy Markdown
Collaborator Author

Followup, since I missed @sbc100 review #15259

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