]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.typeparams] cmd/internal/goobj: add duffzero/duffcopy to builtin list
authorCherry Mui <cherryyz@google.com>
Tue, 1 Jun 2021 23:18:25 +0000 (19:18 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 3 Jun 2021 14:28:02 +0000 (14:28 +0000)
duffzero and duffcopy are commonly referenced functions. Add them
to builtin list, so they are referenced by index, not by name.

Also change gcWriteBarrier to ABIInternal, which is changed in
CL 266638.

Regenerate the file.

Change-Id: If8550d9ed300ac2be930a7c58657a9cf1933ac1d
Reviewed-on: https://go-review.googlesource.com/c/go/+/324250
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/internal/goobj/builtinlist.go
src/cmd/internal/goobj/mkbuiltin.go

index 9f248137daabce0eb9b07e93cecb8b73c274f1dd..608c0d72223e4ee2d181b7248b8895da076eda33 100644 (file)
@@ -33,6 +33,7 @@ var builtins = [...]struct {
        {"runtime.goPanicSlice3BU", 1},
        {"runtime.goPanicSlice3C", 1},
        {"runtime.goPanicSlice3CU", 1},
+       {"runtime.goPanicSliceConvert", 1},
        {"runtime.printbool", 1},
        {"runtime.printfloat", 1},
        {"runtime.printint", 1},
@@ -129,6 +130,8 @@ var builtins = [...]struct {
        {"runtime.makeslice64", 1},
        {"runtime.makeslicecopy", 1},
        {"runtime.growslice", 1},
+       {"runtime.unsafeslice", 1},
+       {"runtime.unsafeslice64", 1},
        {"runtime.memmove", 1},
        {"runtime.memclrNoHeapPointers", 1},
        {"runtime.memclrHasPointers", 1},
@@ -203,7 +206,9 @@ var builtins = [...]struct {
        {"runtime.newproc", 1},
        {"runtime.panicoverflow", 1},
        {"runtime.sigpanic", 1},
-       {"runtime.gcWriteBarrier", 0},
+       {"runtime.gcWriteBarrier", 1},
+       {"runtime.duffzero", 1},
+       {"runtime.duffcopy", 1},
        {"runtime.morestack", 0},
        {"runtime.morestackc", 0},
        {"runtime.morestack_noctxt", 0},
index 18b969586cceda54f55d97cb010b610032a33888..c9995fcedef8eee70bc68b8477c13fc4697dc313 100644 (file)
@@ -151,7 +151,9 @@ var fextras = [...]extra{
        {"sigpanic", 1},
 
        // compiler backend inserted calls
-       {"gcWriteBarrier", 0}, // asm function, ABI0
+       {"gcWriteBarrier", 1},
+       {"duffzero", 1},
+       {"duffcopy", 1},
 
        // assembler backend inserted calls
        {"morestack", 0},        // asm function, ABI0