Alex Crichton c915870526 Remove temporary object allocation
When returning a ptr/length for allocations and such wasm-bindgen's
generated JS would previously return an array with two elements. It
turns out this doesn't optimize well in all engines! (See #1031). It
looks like we can optimize the array destructuring a bit more, but this
is all generated code which doesn't need to be too readable so we can
also remove the temporary allocation entirely and just pass the second
element of this array through a global instead of the return value.

Closes #1031
2018-11-13 08:10:05 -08:00
..
2018-11-12 09:28:01 -08:00
2018-11-12 09:28:01 -08:00
2018-11-12 09:28:01 -08:00
2018-11-12 09:28:01 -08:00
2018-11-12 09:28:01 -08:00
2018-11-12 09:28:01 -08:00
2018-11-12 09:28:01 -08:00
2018-11-12 09:28:01 -08:00
2018-11-12 09:28:01 -08:00
2018-11-12 09:28:01 -08:00
2018-11-12 09:28:01 -08:00
2018-09-26 08:26:00 -07:00
2018-11-12 09:28:01 -08:00
2018-11-12 09:28:01 -08:00