diff options
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/asm/internal/asm/asm.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/fmt_test.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/amd64/ssa.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/gc/builtin/runtime.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/gc/const.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/gc/main.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/gc/ssa.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/ssa/copyelim.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/ssa/regalloc.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/x86/ssa.go | 2 | ||||
| -rw-r--r-- | src/cmd/internal/obj/x86/obj6.go | 2 | ||||
| -rw-r--r-- | src/cmd/internal/objfile/goobj.go | 4 |
12 files changed, 13 insertions, 13 deletions
diff --git a/src/cmd/asm/internal/asm/asm.go b/src/cmd/asm/internal/asm/asm.go index 7e9e59daf4..24aa0537ca 100644 --- a/src/cmd/asm/internal/asm/asm.go +++ b/src/cmd/asm/internal/asm/asm.go @@ -666,7 +666,7 @@ func (p *Parser) asmInstruction(op obj.As, cond string, a []obj.Addr) { } } if p.arch.Family == sys.AMD64 { - // 4 operand instruction have form ymm1, ymm2, ymm3/m256, imm8 + // 4 operand instruction have form ymm1, ymm2, ymm3/m256, imm8 // So From3 is always just a register, so we store imm8 in Offset field, // to avoid increasing size of Prog. prog.From = a[1] diff --git a/src/cmd/compile/fmt_test.go b/src/cmd/compile/fmt_test.go index 0e5a3192ce..dde80565b8 100644 --- a/src/cmd/compile/fmt_test.go +++ b/src/cmd/compile/fmt_test.go @@ -419,7 +419,7 @@ func stringVal(tv types.TypeAndValue) (string, bool) { // formatIter iterates through the string s in increasing // index order and calls f for each format specifier '%..v'. // The arguments for f describe the specifier's index range. -// If a format specifier contains a "*", f is called with +// If a format specifier contains a "*", f is called with // the index range for "*" alone, before being called for // the entire specifier. The result of f is the index of // the rune at which iteration continues. diff --git a/src/cmd/compile/internal/amd64/ssa.go b/src/cmd/compile/internal/amd64/ssa.go index fbd0a9e46c..a0cfdd093a 100644 --- a/src/cmd/compile/internal/amd64/ssa.go +++ b/src/cmd/compile/internal/amd64/ssa.go @@ -878,7 +878,7 @@ func ssaGenValue(s *gc.SSAGenState, v *ssa.Value) { case ssa.OpAMD64LoweredNilCheck: // Issue a load which will fault if the input is nil. // TODO: We currently use the 2-byte instruction TESTB AX, (reg). - // Should we use the 3-byte TESTB $0, (reg) instead? It is larger + // Should we use the 3-byte TESTB $0, (reg) instead? It is larger // but it doesn't have false dependency on AX. // Or maybe allocate an output register and use MOVL (reg),reg2 ? // That trades clobbering flags for clobbering a register. diff --git a/src/cmd/compile/internal/gc/builtin/runtime.go b/src/cmd/compile/internal/gc/builtin/runtime.go index 1fb42e7223..03b853ecc5 100644 --- a/src/cmd/compile/internal/gc/builtin/runtime.go +++ b/src/cmd/compile/internal/gc/builtin/runtime.go @@ -77,7 +77,7 @@ func convT2Istring(tab *byte, elem *any) (ret any) func convT2Islice(tab *byte, elem *any) (ret any) func convT2Inoptr(tab *byte, elem *any) (ret any) -// interface type assertions x.(T) +// interface type assertions x.(T) func assertE2I(typ *byte, iface any) (ret any) func assertE2I2(typ *byte, iface any) (ret any, b bool) func assertI2I(typ *byte, iface any) (ret any) diff --git a/src/cmd/compile/internal/gc/const.go b/src/cmd/compile/internal/gc/const.go index c6a679ed78..6fede5fd30 100644 --- a/src/cmd/compile/internal/gc/const.go +++ b/src/cmd/compile/internal/gc/const.go @@ -247,7 +247,7 @@ func convlit1(n *Node, t *types.Type, explicit bool, reuse canReuseNode) *Node { return n - // target is invalid type for a constant? leave alone. + // target is invalid type for a constant? leave alone. case OLITERAL: if !okforconst[t.Etype] && n.Type.Etype != TNIL { return defaultlitreuse(n, nil, reuse) diff --git a/src/cmd/compile/internal/gc/main.go b/src/cmd/compile/internal/gc/main.go index a1f4767c8f..6d5c15bd85 100644 --- a/src/cmd/compile/internal/gc/main.go +++ b/src/cmd/compile/internal/gc/main.go @@ -769,7 +769,7 @@ func isDriveLetter(b byte) bool { return 'a' <= b && b <= 'z' || 'A' <= b && b <= 'Z' } -// is this path a local name? begins with ./ or ../ or / +// is this path a local name? begins with ./ or ../ or / func islocalname(name string) bool { return strings.HasPrefix(name, "/") || runtime.GOOS == "windows" && len(name) >= 3 && isDriveLetter(name[0]) && name[1] == ':' && name[2] == '/' || diff --git a/src/cmd/compile/internal/gc/ssa.go b/src/cmd/compile/internal/gc/ssa.go index 47fb6938a1..10886b94b8 100644 --- a/src/cmd/compile/internal/gc/ssa.go +++ b/src/cmd/compile/internal/gc/ssa.go @@ -3373,7 +3373,7 @@ func (s *state) canSSA(n *Node) bool { return false case PPARAMOUT: if s.hasdefer { - // TODO: handle this case? Named return values must be + // TODO: handle this case? Named return values must be // in memory so that the deferred function can see them. // Maybe do: if !strings.HasPrefix(n.String(), "~") { return false } // Or maybe not, see issue 18860. Even unnamed return values diff --git a/src/cmd/compile/internal/ssa/copyelim.go b/src/cmd/compile/internal/ssa/copyelim.go index 5cbb4486b2..44ccfe1bfe 100644 --- a/src/cmd/compile/internal/ssa/copyelim.go +++ b/src/cmd/compile/internal/ssa/copyelim.go @@ -45,7 +45,7 @@ func copySource(v *Value) *Value { // but we take some extra care to make sure we // don't get stuck in an infinite loop. // Infinite copy loops may happen in unreachable code. - // (TODO: or can they? Needs a test.) + // (TODO: or can they? Needs a test.) slow := w var advance bool for w.Op == OpCopy { diff --git a/src/cmd/compile/internal/ssa/regalloc.go b/src/cmd/compile/internal/ssa/regalloc.go index d509c6c0d3..5d1fbf8e3f 100644 --- a/src/cmd/compile/internal/ssa/regalloc.go +++ b/src/cmd/compile/internal/ssa/regalloc.go @@ -884,7 +884,7 @@ func (s *regAllocState) regalloc(f *Func) { // Decide on registers for phi ops. Use the registers determined // by the primary predecessor if we can. // TODO: pick best of (already processed) predecessors? - // Majority vote? Deepest nesting level? + // Majority vote? Deepest nesting level? phiRegs = phiRegs[:0] var phiUsed regMask for _, v := range phis { diff --git a/src/cmd/compile/internal/x86/ssa.go b/src/cmd/compile/internal/x86/ssa.go index a491599c58..ca430d681b 100644 --- a/src/cmd/compile/internal/x86/ssa.go +++ b/src/cmd/compile/internal/x86/ssa.go @@ -728,7 +728,7 @@ func ssaGenValue(s *gc.SSAGenState, v *ssa.Value) { case ssa.Op386LoweredNilCheck: // Issue a load which will fault if the input is nil. // TODO: We currently use the 2-byte instruction TESTB AX, (reg). - // Should we use the 3-byte TESTB $0, (reg) instead? It is larger + // Should we use the 3-byte TESTB $0, (reg) instead? It is larger // but it doesn't have false dependency on AX. // Or maybe allocate an output register and use MOVL (reg),reg2 ? // That trades clobbering flags for clobbering a register. diff --git a/src/cmd/internal/obj/x86/obj6.go b/src/cmd/internal/obj/x86/obj6.go index 27873e0824..52fbaa0156 100644 --- a/src/cmd/internal/obj/x86/obj6.go +++ b/src/cmd/internal/obj/x86/obj6.go @@ -528,7 +528,7 @@ func rewriteToPcrel(ctxt *obj.Link, p *obj.Prog, newprog obj.ProgAlloc) { var dst int16 = REG_CX if (p.As == ALEAL || p.As == AMOVL) && p.To.Reg != p.From.Reg && p.To.Reg != p.From.Index { dst = p.To.Reg - // Why? See the comment near the top of rewriteToUseGot above. + // Why? See the comment near the top of rewriteToUseGot above. // AMOVLs might be introduced by the GOT rewrites. } q := obj.Appendp(p, newprog) diff --git a/src/cmd/internal/objfile/goobj.go b/src/cmd/internal/objfile/goobj.go index e075604abd..c9e12a81a4 100644 --- a/src/cmd/internal/objfile/goobj.go +++ b/src/cmd/internal/objfile/goobj.go @@ -81,7 +81,7 @@ func (f *goobjFile) symbols() ([]Sym, error) { } func (f *goobjFile) pcln() (textStart uint64, symtab, pclntab []byte, err error) { - // Should never be called. We implement Liner below, callers + // Should never be called. We implement Liner below, callers // should use that instead. return 0, nil, nil, fmt.Errorf("pcln not available in go object file") } @@ -90,7 +90,7 @@ func (f *goobjFile) pcln() (textStart uint64, symtab, pclntab []byte, err error) // Returns "",0,nil if unknown. // This function implements the Liner interface in preference to pcln() above. func (f *goobjFile) PCToLine(pc uint64) (string, int, *gosym.Func) { - // TODO: this is really inefficient. Binary search? Memoize last result? + // TODO: this is really inefficient. Binary search? Memoize last result? var arch *sys.Arch for _, a := range sys.Archs { if a.Name == f.goobj.Arch { |
