[Webkit-unassigned] [Bug 149031] Implement global variables in WebAssembly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 22 03:46:47 PDT 2015


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

--- Comment #6 from Sukolsak Sakshuwong <sukolsak at gmail.com> ---
Global variables have been removed from the MVP.

"Mutable global variables

In the MVP, there are no global variables; C/C++ global variables are stored in linear memory and thus accessed through normal linear memory operations. Dynamic linking will add some form of immutable global variable analogous to "symbols" in native binaries. In some cases, though, it may be useful to have a fully mutable global variable which lives outside linear memory. This would allow more aggressive compiler optimizations (due to better alias information). If globals are additionally allowed array types, significant portions of memory could be moved out of linear memory which could reduce fragmentation issues. Langauges like FORTRAN which limit aliasing would be one use case. C/C++ compilers could also determine that some global variables never have their address taken." (https://github.com/WebAssembly/design/blob/master/FutureFeatures.md#mutable-global-variables)

"Postpone adding globals until dynamic linking" (https://github.com/WebAssembly/design/issues/154)

-- 
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/20150922/8f030bec/attachment-0001.html>


More information about the webkit-unassigned mailing list