runtime: remove deferreturn dummy argument
deferreturn has a dummy argument, that is only used for getting the caller's SP. When generating deferreturn calls, the compiler does not pass an actual argument or reserve its stack space. Also, the current code is written with the assumption about where the argument's address is on the stack. Currently this is correct for both ABI0 and the register ABI, but it may change in the future (e.g. if we remove dedicated spill slots). Remove the argument. Also remove the argument for getargp. Change-Id: I96d07efa79a9c1a53ef3fc5adbecc11877e99dc1 Reviewed-on: https://go-review.googlesource.com/c/go/+/309329 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by:David Chase <drchase@google.com> Reviewed-by:
Than McIntosh <thanm@google.com>
Loading
Please sign in to comment