]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add traceback argument info to ABI0 assembly functions
authorCherry Zhang <cherryyz@google.com>
Fri, 30 Apr 2021 23:45:11 +0000 (19:45 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 3 May 2021 15:53:36 +0000 (15:53 +0000)
commit8327d2150f97528dc6a3090ddee99db0e9872212
tree486eadce2bb8818896ee493248fedd835601375f
parent844e1fc6f1d0dacd92534dba7f8d71f377017742
cmd/compile: add traceback argument info to ABI0 assembly functions

For ABI0 assembly functions that have Go declarations, generate
traceback argument info and attach it to the assembly functions.
So we can print argument in tracebacks if e.g. assembly function
panics.

Only do this for ABI0 functions, as for ABIInternal assembly
functions it is likely that they never spill arguments to memory.

Change-Id: I7e601ccd9aded5e6af2f02be975bf81ff9948f4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/315870
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/compile/internal/gc/compile.go
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/internal/obj/plist.go