| Summary: | WebAssembly: opcodes for table.grow and table.size are mixed up | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Sergey Rubanov <chi187> | ||||||||||||
| Component: | WebAssembly | Assignee: | Nobody <webkit-unassigned> | ||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||
| Severity: | Normal | CC: | ews-watchlist, keith_miller, mark.lam, msaboff, saam, smoley, tzagallo, webkit-bug-importer, ysuzuki | ||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||
| Version: | Safari 14 | ||||||||||||||
| Hardware: | Unspecified | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| Bug Depends on: | 218876 | ||||||||||||||
| Bug Blocks: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Sergey Rubanov
2020-11-05 20:16:42 PST
Created attachment 413392 [details]
Patch
This patch modifies one of the wasm.json files. Please ensure that any changes in one have been mirrored to the other. You can find the wasm.json files at "Source/JavaScriptCore/wasm/wasm.json" and "JSTests/wasm/wasm.json". Created attachment 413393 [details]
Patch
Comment on attachment 413393 [details]
Patch
Looks like there's a layout test relying on this. Can you fix that test? Also, could you import the spec tests for the table grow instructions?
(In reply to Keith Miller from comment #4) > Comment on attachment 413393 [details] > Patch > > Looks like there's a layout test relying on this. Can you fix that test? > Also, could you import the spec tests for the table grow instructions? will do 👍 Created attachment 413480 [details]
Patch
I didn't find test for table.grow and table.size in current spec and in reference types proposal repos. There could be tests in V8 and SpiderMonkey repo as mentioned in https://bugs.webkit.org/show_bug.cgi?id=218331#c0, but it would be better to import all reference types tests at once IMO. My patch will have a conflict with the patch from #218331 (mentioned above). Either of these two need to be updated after another one will land. Created attachment 413506 [details]
Patch
(In reply to Sergey Rubanov from comment #7) > I didn't find test for table.grow and table.size in current spec and in > reference types proposal repos. There could be tests in V8 and SpiderMonkey > repo as mentioned in https://bugs.webkit.org/show_bug.cgi?id=218331#c0, but > it would be better to import all reference types tests at once IMO. > > My patch will have a conflict with the patch from #218331 (mentioned above). > Either of these two need to be updated after another one will land. Oh... Can you write a test for table.size and table.grow in JSTests/wasm/stress? You can write a test with wabt by using wabt-wrapper.js? The example using wabt is `JSTests/wasm/stress/top-most-enclosing-stack.js`. Tests are blocked by https://bugs.webkit.org/show_bug.cgi?id=218744 Created attachment 414034 [details]
Patch
jsc-armv7-test seem to be stuck :( Comment on attachment 414034 [details]
Patch
Perfect! Thanks, r=me.
Committed r269790: <https://trac.webkit.org/changeset/269790> All reviewed patches have been landed. Closing bug and clearing flags on attachment 414034 [details]. |