opcodes for known sections#1460
Conversation
test/wasm/f32_known_sections.js
Outdated
| // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
| //------------------------------------------------------------------------------------------------------- | ||
|
|
||
| const blob = WScript.LoadBinaryFile('f32_known_sections.wasm'); |
There was a problem hiding this comment.
Can we use a simpler test case for this?
|
Looks like we have to rebase this one. |
42fba25 to
6d9b004
Compare
|
@Cellule Just want to put this on your radar since other changes (globals and table/elements) will depend on it. |
|
Reviewed 1 of 4 files at r1, 9 of 11 files at r2. lib/WasmReader/WasmBinaryReader.cpp, line 177 at r2 (raw file):
You are capturing the pointer too soon, you must read the length first then do sectionName = m_pc. lib/WasmReader/WasmBinaryReader.cpp, line 179 at r2 (raw file):
Should add a check here lib/WasmReader/WasmBinaryReader.cpp, line 182 at r2 (raw file):
According to Section Header lib/WasmReader/WasmBinaryReader.cpp, line 187 at r2 (raw file):
While your at it, instead of an assert, could you make this a check and just print Unknown section name if the length is greater than 64. test/rlexedirs.xml, line 376 at r2 (raw file):
This is going to conflict with George's change. Comments from Reviewable |
|
@Cellule that's amazing how much I managed to mess up in like 10 lines of code :-)))))) Regarding removing the tests George and I weren't quite sure which change goes first. Apparently his does :-) I'll back out that part and fix the rest. |
6d9b004 to
9137848
Compare
|
@Cellule updated the PR. |
|
Reviewed 9 of 10 files at r3. lib/WasmReader/WasmBinaryReader.cpp, line 178 at r3 (raw file):
What happens to Comments from Reviewable |
e70e8e3 to
f1cd176
Compare
|
lib/WasmReader/WasmBinaryReader.cpp, line 178 at r3 (raw file):
|
|
Reviewed 2 of 2 files at r4. Comments from Reviewable |
|
@arunetm Could you please merge this when you have a mnt? |
Merge pull request #1460 from Krovatkin:known_sections Per WebAssembly/design#740 this adds a few bits to support opcodes for known sections fyi @commonlisp @arunetm @cellulle @MikeHolman homeless PR looks for a nice review and branch to be adopted into <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/microsoft/chakracore/1460) <!-- Reviewable:end -->
|
Merged to WebAssembly branch. |
Per WebAssembly/design#740
this adds a few bits to support opcodes for known sections
fyi @commonlisp @arunetm
@cellulle @MikeHolman homeless PR looks for a nice review and branch to be adopted into
This change is