]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/goobj: update builtin list
authorGuoqi Chen <chenguoqi@loongson.cn>
Thu, 20 Apr 2023 04:22:27 +0000 (12:22 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 23 May 2023 19:50:30 +0000 (19:50 +0000)
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>

src/cmd/internal/goobj/builtinlist.go
src/cmd/internal/goobj/mkbuiltin.go

index ae2e6cc0041689802fda81c8d170929adb0a2611..883e13dbc57d87ea63288e766878dba49873ce4e 100644 (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},
index 57e39dc47e46fc364fc147e591132da53c0af1b3..aefb19b5e3703cb1e70ba0f30e65681c7a0ba152 100644 (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)