]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: use names for keep alive variables in function call
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 30 Dec 2020 07:08:44 +0000 (14:08 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 31 Dec 2020 09:43:13 +0000 (09:43 +0000)
commit77fd81a3e6c4aa248df135cc24be2871689cc7c3
tree0331d570e45404787dd443ccffb849a16527868f
parent8fe119765404d29c5efe0fb86afebfa523f83a7f
[dev.regabi] cmd/compile: use names for keep alive variables in function call

Back to pre Russquake, Node.Nbody of OCALL* node is used to attach
variables which must be kept alive during that call.

Now after Russquake, we have CallExpr to represent a function call,
so use a dedicated field for those variables instead.

Passes toolstash -cmp.

Change-Id: I4f40ebefcc7c41cdcc4e29c7a6d8496a083b68f4
Reviewed-on: https://go-review.googlesource.com/c/go/+/280733
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/node_gen.go
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/walk/order.go
src/cmd/compile/internal/walk/stmt.go