[Webkit-unassigned] [Bug 147293] Implement WebAssembly module parser

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 31 02:09:15 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=147293

--- Comment #31 from Sukolsak Sakshuwong <sukolsak at gmail.com> ---
(In reply to comment #30)
> Do we think it is likely that WASM binary format will stay
> little endian?

I'm not sure, but my guess is yes. The design document says "WebAssembly portability assumes that execution environments offer the following characteristics: ... Little-endian byte ordering." <https://github.com/WebAssembly/design/blob/master/Portability.md> So, the little-endian ordering is probably preferred.

> Would a lot of parsing code have to change if it's
> big endian? It seems like it wouldn't be a lot but I haven't read
> all the WASM code you've been working on.

The final format will likely be very different from what we are using. So, a lot of code will have to change anyway. For the WASMReader class, I think there are only 5 methods would have to change, i.e., int16, int32, int64, float, and double.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150731/109d4876/attachment.html>


More information about the webkit-unassigned mailing list