-
Denys Smirnov authored
Currently, WASM binary writer requests 16 int registers (locals) and 16 float registers for every function regardless of how many locals the function uses. This change counts the number of used registers and requests a number of locals matching the highest register index. The change has no effect on performance and neglectable binary size improvement, but it makes WASM code more readable and easy to analyze. Change-Id: Ic1079623c0d632b215c68482db909fa440892700 GitHub-Last-Rev: 184634fa918aff74e280904dc2efafcc80735a8b GitHub-Pull-Request: golang/go#28116 Reviewed-on: https://go-review.googlesource.com/c/140999Reviewed-by: Richard Musiol <neelance@gmail.com> Run-TryBot: Richard Musiol <neelance@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
6c631ae2
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
a.out.go | ||
anames.go | ||
wasmobj.go |