1
0
mirror of https://github.com/golang/go synced 2024-11-16 19:44:53 -07:00

cmd/internal/goobj: update builtin list

Change-Id: I8a903b76d80f451b498b145b14c97f96191e05f2
Reviewed-on: https://go-review.googlesource.com/c/go/+/486775
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Guoqi Chen 2023-04-20 12:22:27 +08:00 committed by Gopher Robot
parent c0af7cd05f
commit be91040ea7
2 changed files with 15 additions and 7 deletions

View File

@ -66,15 +66,13 @@ var builtins = [...]struct {
{"runtime.decoderune", 1},
{"runtime.countrunes", 1},
{"runtime.convI2I", 1},
{"runtime.convT", 1},
{"runtime.convTnoptr", 1},
{"runtime.convT16", 1},
{"runtime.convT32", 1},
{"runtime.convT64", 1},
{"runtime.convTstring", 1},
{"runtime.convTslice", 1},
{"runtime.convT2E", 1},
{"runtime.convT2Enoptr", 1},
{"runtime.convT2I", 1},
{"runtime.convT2Inoptr", 1},
{"runtime.assertE2I", 1},
{"runtime.assertE2I2", 1},
{"runtime.assertI2I", 1},
@ -130,8 +128,13 @@ var builtins = [...]struct {
{"runtime.makeslice64", 1},
{"runtime.makeslicecopy", 1},
{"runtime.growslice", 1},
{"runtime.unsafeslice", 1},
{"runtime.unsafeslice64", 1},
{"runtime.unsafeslicecheckptr", 1},
{"runtime.panicunsafeslicelen", 1},
{"runtime.panicunsafeslicenilptr", 1},
{"runtime.unsafestringcheckptr", 1},
{"runtime.panicunsafestringlen", 1},
{"runtime.panicunsafestringnilptr", 1},
{"runtime.mulUintptr", 1},
{"runtime.memmove", 1},
{"runtime.memclrNoHeapPointers", 1},
{"runtime.memclrHasPointers", 1},
@ -171,7 +174,9 @@ var builtins = [...]struct {
{"runtime.float64touint64", 1},
{"runtime.float64touint32", 1},
{"runtime.int64tofloat64", 1},
{"runtime.int64tofloat32", 1},
{"runtime.uint64tofloat64", 1},
{"runtime.uint64tofloat32", 1},
{"runtime.uint32tofloat64", 1},
{"runtime.complex128div", 1},
{"runtime.getcallerpc", 1},
@ -185,6 +190,8 @@ var builtins = [...]struct {
{"runtime.msanread", 1},
{"runtime.msanwrite", 1},
{"runtime.msanmove", 1},
{"runtime.asanread", 1},
{"runtime.asanwrite", 1},
{"runtime.checkptrAlignment", 1},
{"runtime.checkptrArithmetic", 1},
{"runtime.libfuzzerTraceCmp1", 1},
@ -197,6 +204,7 @@ var builtins = [...]struct {
{"runtime.libfuzzerTraceConstCmp8", 1},
{"runtime.libfuzzerHookStrCmp", 1},
{"runtime.libfuzzerHookEqualFold", 1},
{"runtime.addCovMeta", 1},
{"runtime.x86HasPOPCNT", 0},
{"runtime.x86HasSSE41", 0},
{"runtime.x86HasFMA", 0},

View File

@ -53,7 +53,7 @@ func main() {
func mkbuiltin(w io.Writer) {
pkg := "runtime"
fset := token.NewFileSet()
path := filepath.Join("..", "..", "compile", "internal", "typecheck", "builtin", "runtime.go")
path := filepath.Join("..", "..", "compile", "internal", "typecheck", "_builtin", "runtime.go")
f, err := parser.ParseFile(fset, path, nil, 0)
if err != nil {
log.Fatal(err)