]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: remove deferreturn dummy argument
authorCherry Zhang <cherryyz@google.com>
Sun, 11 Apr 2021 03:02:04 +0000 (23:02 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 12 Apr 2021 16:30:17 +0000 (16:30 +0000)
commit585b52261c1b4e26b029616581ee0e891ad49183
tree18439c2d38948fc8a7325cc82490522aed23eed5
parent9ed0e320599bcd559565207bb6a9b0c49a5b36ee
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>
src/runtime/panic.go