3 ms·
asm.js is indeed growing the ability to resize its heap [0]. It's already implemented in Firefox Nightly [1]. [0] http://discourse.specifiction.org/t/request-f
by sunfish 12y ago
asm.js is indeed growing the ability to resize its heap [0]. It's already implemented in Firefox Nightly [1].
[0] http://discourse.specifiction.org/t/request-for-comments-switching-resizing-heaps-in-asm-js/641 http://discourse.specifiction.org/t/request-for-comments-swi...
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=965880 https://bugzilla.mozilla.org/show_bug.cgi?id=965880
- amelius 12y agoWhat I'm wondering is what a pointer-dereference would look like. Is every pointer dereference in asm.js implemented by TWO dereferences (one to find the heap, and then one to find the index within the heap)? And are there mutexes (or other synchronization directives) used per dereference in a typical implementation?
- sunfish 12y agoIt's still being designed, but we're unlikely to do anything that would require a double dereference or synchronization on each access -- that would be a lot og overhead. We'll likely seek a way to keep accesses fast by doing more work at heap resizing time, since heap resizing ought to be infrequent.