Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[wasm64] making JS bindings wasm64 aware #12869
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
[wasm64] making JS bindings wasm64 aware #12869
Changes from all commits
32ca8dc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be removed and just use
POINTER_SIZE
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is some funny scope / dependency / ordering issue between these files last time I tried to sort this out, and I seem to remember
POINTER_SIZE
not being available everywhere. Below we havePOINTER_SIZE: getPointerSize()
and turning that intoPOINTER_SIZE: POINTER_SIZE
will most certainly not work.The double definition of
getPointerSize
was also necessary, we even had some discussion on that, forget where.I'd love to hear more specific ideas on how to un-knot this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like parseTools is executed first in compiler.js. So we could define
POINTER_SIZE
there and use it here. I think we already define it there, so maybe after recent changes it will just work?If not, what error do you get?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could go figure that all out, but I'd rather do this in a follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove this too, and use
POINTER_SIZE
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add
FORCE64 = int(os.getenv('EMTEST_FORCE64', '0'))
above in configure and then removeFORCE64
fromtests/test_benchmark.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That didn't work, had keep at least
FORCE64 = 0
in the other file and addglobal FORCE64
here..?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant
common.FORCE64 = int(os.getenv('EMTEST_FORCE64', '0'))
(with the common prefix).And then in
common.py
you would doEMTEST_FORCE64 = 0
and then intests/test_benchmark.py
you would doimport common
and access it ascommon.EMTEST_FORCE64
. That is the pattern that the other options use anyway.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still needs to be resolved.. we shouldn't need the
global
keyword above.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about the changes to this file.. My understanding is that folks are expect to edit it to their needs so checking in this one configuration seems odd/wrong. Perhaps remove this file from this PR since its not needed for CI.. its more a local testing thing for you I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seem like a lot of changes that I'd have to re-do / re-figure-out each time I run this, I don't understand why I wouldn't want this runnable out of the box? where do I "store" these modifications when I am not using them? why not have some good defaults that are useful to people?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normally what we do is create a new suite in
test_core.py
when we want to get good coverage for a new features.. and that has historically been enough. I see you have already done that for wasm64 which is great.This change seems like a new way to configure the benchmark suite which so far we don't have. I'm just not sure why we would single out wasm64 and hardcode all these settings like this when we don't do it for other features such as LTO and ASan.
I guess its fine.. I basically never run this suite so I don't feel strongly.. what do you think @kripken ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasm64 does seem special enough to justify this, I think. And we do have a few other global params here like profiling etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kripken WDYT about these changes to
test_benchmark.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 from me for these changes to benchmarking.