Closed Bug 1263205 Opened 9 years ago Closed 9 years ago

wasm: section header and name tweaks

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: sunfish, Assigned: sunfish)

References

Details

Attachments

(3 files, 2 obsolete files)

Attachment #8739506 - Flags: review?(luke)
Attached patch wasm-section-names.patch (obsolete) — Splinter Review
Attachment #8739507 - Flags: review?(luke)
Comment on attachment 8739506 [details] [diff] [review] wasm-section-tweaks.patch Review of attachment 8739506 [details] [diff] [review]: ----------------------------------------------------------------- Ah, much simpler. Idea, feel free to take it or leave it: we could have a struct Section { size_t startOffset; size_t size }; as the in/out param.
Attachment #8739506 - Flags: review?(luke) → review+
Comment on attachment 8739507 [details] [diff] [review] wasm-section-names.patch Review of attachment 8739507 [details] [diff] [review]: ----------------------------------------------------------------- (and to be clear, we're waiting to land these patches until has been updated with Wasm.experimentalVersion == 0xb)
Attachment #8739507 - Flags: review?(luke) → review+
Rebased on trunk and latest wasm-postorder patch. Carrying forward r+.
Attachment #8739507 - Attachment is obsolete: true
Attachment #8743031 - Flags: review+
Comment on attachment 8743573 [details] [diff] [review] wasm-section-form.patch Review of attachment 8743573 [details] [diff] [review]: ----------------------------------------------------------------- Looks good! About allowing back duplication of signatures: is it because it was never disallowed in the spec? ::: js/src/asmjs/WasmBinaryToText.cpp @@ +1297,5 @@ > + if (!c.d.readValType(&type)) > + return RenderFail(c, "bad expression type"); > + > + result = ToExprType(type); > + } Can you add an `if (numRests > 1)` branch above with a RenderFail(NYI), please? It'd be nicer, for the future, than a decoding error somewhere further down.
Attachment #8743573 - Flags: review?(bbouvier) → review+
Updated
Attachment #8743573 - Attachment is obsolete: true
Attachment #8743836 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: