]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: rename issafepoint -> hasStackMap
authorAustin Clements <austin@google.com>
Fri, 17 Apr 2020 21:14:33 +0000 (17:14 -0400)
committerAustin Clements <austin@google.com>
Wed, 29 Apr 2020 21:29:16 +0000 (21:29 +0000)
commita6deafaf9e6262e1a9fa390e2cc0b6df1977828c
treea8bf8c92ab9256c7528c9b1336889d5d458e43bb
parent2bad2f7ebaaf9c7112b98bfa48ed8213ef1e5d90
cmd/compile: rename issafepoint -> hasStackMap

Currently, this function conflates two (easily conflated!) concepts:
whether a Value is a safe-point and whether it has a stack map. In
particular, call Values may not be a safe-point, but may need a stack
map anyway in case the called function grows the stack.

Hence, rename this function to "hasStackMap", since that's really what
it represents.

For #36365.

Change-Id: I89839de0be8db3be3f0d3a7fb5fcf0b0b6ebc98a
Reviewed-on: https://go-review.googlesource.com/c/go/+/230540
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/gc/plive.go