aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/goobj
diff options
context:
space:
mode:
authorGuoqi Chen <chenguoqi@loongson.cn>2023-04-20 12:22:27 +0800
committerGopher Robot <gobot@golang.org>2023-05-23 19:50:30 +0000
commitbe91040ea72dac0f48ec1e6f8c4f19ba85af6697 (patch)
treec01afa12a88033b51ba8790f67f3367a2850fb4d /src/cmd/internal/goobj
parentc0af7cd05f75d1ac6540bf41bbe9984a0fd35be2 (diff)
downloadgo-be91040ea72dac0f48ec1e6f8c4f19ba85af6697.tar.xz
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>
Diffstat (limited to 'src/cmd/internal/goobj')
-rw-r--r--src/cmd/internal/goobj/builtinlist.go20
-rw-r--r--src/cmd/internal/goobj/mkbuiltin.go2
2 files changed, 15 insertions, 7 deletions
diff --git a/src/cmd/internal/goobj/builtinlist.go b/src/cmd/internal/goobj/builtinlist.go
index ae2e6cc004..883e13dbc5 100644
--- a/src/cmd/internal/goobj/builtinlist.go
+++ b/src/cmd/internal/goobj/builtinlist.go
@@ -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},
diff --git a/src/cmd/internal/goobj/mkbuiltin.go b/src/cmd/internal/goobj/mkbuiltin.go
index 57e39dc47e..aefb19b5e3 100644
--- a/src/cmd/internal/goobj/mkbuiltin.go
+++ b/src/cmd/internal/goobj/mkbuiltin.go
@@ -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)