]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: update a few stale comments
authorAustin Clements <austin@google.com>
Fri, 19 Mar 2021 18:55:23 +0000 (14:55 -0400)
committerAustin Clements <austin@google.com>
Mon, 29 Mar 2021 18:46:25 +0000 (18:46 +0000)
CL 64811 removed dcopy. Update the comment in types.Sym.

The Russquake moved iexport.go. Update the path to it.

WRAPPER is now also used by ABI wrappers, so update the comment since
it's now more general than method wrappers.

Change-Id: Ie0df61dcef7168f6720838cd5c9a66adf546a44f
Reviewed-on: https://go-review.googlesource.com/c/go/+/305269
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/importer/iimport.go
src/cmd/compile/internal/ir/func.go
src/cmd/compile/internal/types/sym.go
src/cmd/internal/obj/textflag.go

index 33c46a0f906646198427fdeb495f04c0c412a6bd..8ab0b7b98961fdefe1e4dc605a65a029979c79b1 100644 (file)
@@ -4,7 +4,7 @@
 // license that can be found in the LICENSE file.
 
 // Indexed package import.
-// See cmd/compile/internal/gc/iexport.go for the export data format.
+// See cmd/compile/internal/typecheck/iexport.go for the export data format.
 
 package importer
 
index 0a9db92d967136062350db4d00447c47c0fc2461..c17425a4da2f72807f14be80695c26800e1af687 100644 (file)
@@ -162,7 +162,7 @@ type ScopeID int32
 
 const (
        funcDupok         = 1 << iota // duplicate definitions ok
-       funcWrapper                   // is method wrapper
+       funcWrapper                   // hide frame from users (elide in tracebacks, don't count as a frame for recover())
        funcNeedctxt                  // function uses context register (has closure variables)
        funcReflectMethod             // function calls reflect.Type.Method or MethodByName
        // true if closure inside a function; false if a simple function or a
index 0e66ed348bfcf09e070996406a893bae56a338a8..c689304b34f4ce99dcd7f834f0c169eab4b51c6d 100644 (file)
@@ -32,7 +32,7 @@ type Sym struct {
        Pkg  *Pkg
        Name string // object name
 
-       // saved and restored by dcopy
+       // saved and restored by Pushdcl/Popdcl
        Def        Object   // definition: ONAME OTYPE OPACK or OLITERAL
        Block      int32    // blocknumber to catch redeclaration
        Lastlineno src.XPos // last declaration for diagnostic
index 2f55793285e2ee801ac448d02301fa0b1870a230..881e1922031d8780a127cf8fdc85476b1b90de0a 100644 (file)
@@ -27,7 +27,8 @@ const (
        // This data contains no pointers.
        NOPTR = 16
 
-       // This is a wrapper function and should not count as disabling 'recover'.
+       // This is a wrapper function and should not count as
+       // disabling 'recover' or appear in tracebacks by default.
        WRAPPER = 32
 
        // This function uses its incoming context register.