-
Notifications
You must be signed in to change notification settings - Fork 21
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
Text format for inline data in memories #5
Comments
Yes, I thought that was the most logical change too. Except we already have:
for example, where the limits, and thus the Then there is We should not do it differently for Alternatively we can always put the |
Hm, where is |
Encountered this in Binaryen, see its current parsing code: https://github.com/WebAssembly/binaryen/blob/2aa0cf300998c62aea8cc6698f8325653a9f0895/src/wasm/wasm-s-parser.cpp#L2010-L2093 Example use: https://github.com/WebAssembly/binaryen/blob/master/test/atomics.wast |
Hm, yeah that doesn't match the expected format. See the reference interpreter, for example: memory_type :
| limits { MemoryType ($1, Unshared) }
| limits SHARED { MemoryType ($1, Shared) } |
Ok, maybe I should rework Binaryen to remove this special form as well, since it is hard to parse supporting multiple of these forms. So the final order we want is: name (and import export) -> index type -> limits or data -> "shared" optionally ? |
yes, that sounds right, though some of the combinations perhaps not. For example, if we allow it, |
Given that there's ~100 occurrences of |
These uncovered some things the previous tests didn't! Also required the switching of the location of the index as discussed in WebAssembly/memory64#5 Also one small .py change that ensures the new tests have consistent posix paths.
These uncovered some things the previous tests didn't! Also required the switching of the location of the index as discussed in WebAssembly/memory64#5 Also one small .py change that ensures the new tests have consistent posix paths.
These uncovered some things the previous tests didn't! Also required the switching of the location of the index as discussed in WebAssembly/memory64#5 Also one small .py change that ensures the new tests have consistent posix paths.
Currently the text format allows for memories to be defined with data inline:
where the limits are automatically calculated and this "elaborates" to a memory declaration and a data segment. Currently the text format in the
Overview.md
I think doesn't have an update to account for this, and I presume it'll likely change to:for 64-bit memories?
A very minor issue, but wanted to make sure it was logged!
The text was updated successfully, but these errors were encountered: