1
0
mirror of https://github.com/golang/go synced 2024-11-13 19:00:25 -07:00

cmd/internal/gc, cmd/[56789]g: rename stackcopy to blockcopy

To avoid confusion with the runtime concept of copying stack.

Change-Id: I33442377b71012c2482c2d0ddd561492c71e70d0
Reviewed-on: https://go-review.googlesource.com/8639
Reviewed-by: Dave Cheney <dave@cheney.net>
Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
Shenghou Ma 2015-04-08 13:34:42 -04:00 committed by Minux Ma
parent baf3814b29
commit e7dd28891e
13 changed files with 13 additions and 13 deletions

View File

@ -75,7 +75,7 @@ func gencmp0(n *gc.Node, t *gc.Type, o int, likely int, to *obj.Prog) {
gc.Regfree(&n1)
}
func stackcopy(n, res *gc.Node, osrc, odst, w int64) {
func blockcopy(n, res *gc.Node, osrc, odst, w int64) {
// determine alignment.
// want to avoid unaligned access, so have to use
// smaller operations for less aligned types.

View File

@ -76,7 +76,7 @@ func main() {
gc.Thearch.Sameaddr = sameaddr
gc.Thearch.Smallindir = smallindir
gc.Thearch.Stackaddr = stackaddr
gc.Thearch.Stackcopy = stackcopy
gc.Thearch.Blockcopy = blockcopy
gc.Thearch.Sudoaddable = sudoaddable
gc.Thearch.Sudoclean = sudoclean
gc.Thearch.Excludedregs = excludedregs

View File

@ -10,7 +10,7 @@ import (
"cmd/internal/obj/x86"
)
func stackcopy(n, ns *gc.Node, osrc, odst, w int64) {
func blockcopy(n, ns *gc.Node, osrc, odst, w int64) {
var noddi gc.Node
gc.Nodreg(&noddi, gc.Types[gc.Tptr], x86.REG_DI)
var nodsi gc.Node

View File

@ -111,7 +111,7 @@ func main() {
gc.Thearch.Sameaddr = sameaddr
gc.Thearch.Smallindir = smallindir
gc.Thearch.Stackaddr = stackaddr
gc.Thearch.Stackcopy = stackcopy
gc.Thearch.Blockcopy = blockcopy
gc.Thearch.Sudoaddable = sudoaddable
gc.Thearch.Sudoclean = sudoclean
gc.Thearch.Excludedregs = excludedregs

View File

@ -10,7 +10,7 @@ import (
"cmd/internal/obj/arm64"
)
func stackcopy(n, res *gc.Node, osrc, odst, w int64) {
func blockcopy(n, res *gc.Node, osrc, odst, w int64) {
// determine alignment.
// want to avoid unaligned access, so have to use
// smaller operations for less aligned types.

View File

@ -75,7 +75,7 @@ func main() {
gc.Thearch.Sameaddr = sameaddr
gc.Thearch.Smallindir = smallindir
gc.Thearch.Stackaddr = stackaddr
gc.Thearch.Stackcopy = stackcopy
gc.Thearch.Blockcopy = blockcopy
gc.Thearch.Sudoaddable = sudoaddable
gc.Thearch.Sudoclean = sudoclean
gc.Thearch.Excludedregs = excludedregs

View File

@ -48,7 +48,7 @@ func igenindex(n *gc.Node, res *gc.Node, bounded bool) *obj.Prog {
return gc.Gbranch(x86.AJNE, nil, +1)
}
func stackcopy(n, res *gc.Node, osrc, odst, w int64) {
func blockcopy(n, res *gc.Node, osrc, odst, w int64) {
var dst gc.Node
gc.Nodreg(&dst, gc.Types[gc.Tptr], x86.REG_DI)
var src gc.Node

View File

@ -89,7 +89,7 @@ func main() {
gc.Thearch.Sameaddr = sameaddr
gc.Thearch.Smallindir = smallindir
gc.Thearch.Stackaddr = stackaddr
gc.Thearch.Stackcopy = stackcopy
gc.Thearch.Blockcopy = blockcopy
gc.Thearch.Sudoaddable = sudoaddable
gc.Thearch.Sudoclean = sudoclean
gc.Thearch.Excludedregs = excludedregs

View File

@ -10,7 +10,7 @@ import (
"cmd/internal/obj/ppc64"
)
func stackcopy(n, res *gc.Node, osrc, odst, w int64) {
func blockcopy(n, res *gc.Node, osrc, odst, w int64) {
// determine alignment.
// want to avoid unaligned access, so have to use
// smaller operations for less aligned types.

View File

@ -82,7 +82,7 @@ func main() {
gc.Thearch.Sameaddr = sameaddr
gc.Thearch.Smallindir = smallindir
gc.Thearch.Stackaddr = stackaddr
gc.Thearch.Stackcopy = stackcopy
gc.Thearch.Blockcopy = blockcopy
gc.Thearch.Sudoaddable = sudoaddable
gc.Thearch.Sudoclean = sudoclean
gc.Thearch.Excludedregs = excludedregs

View File

@ -2312,7 +2312,7 @@ func sgen_wb(n *Node, ns *Node, w int64, wb bool) {
return
}
Thearch.Stackcopy(n, ns, osrc, odst, w)
Thearch.Blockcopy(n, ns, osrc, odst, w)
}
/*

View File

@ -809,7 +809,7 @@ type Arch struct {
Sameaddr func(*obj.Addr, *obj.Addr) bool
Smallindir func(*obj.Addr, *obj.Addr) bool
Stackaddr func(*obj.Addr) bool
Stackcopy func(*Node, *Node, int64, int64, int64)
Blockcopy func(*Node, *Node, int64, int64, int64)
Sudoaddable func(int, *Node, *obj.Addr) bool
Sudoclean func()
Excludedregs func() uint64

View File

@ -15,7 +15,7 @@
// the routine to copy chunks of memory.
// Source and destination must not overlap.
// Do not change duffcopy without also
// changing stackcopy in cmd/?g/cgen.go.
// changing blockcopy in cmd/?g/cgen.go.
// See the zero* and copy* generators below
// for architecture-specific comments.