cmd/compile: fix misaligned comments
Realign multi-line comments that got misaligned by the c->go
conversion.
Change-Id: I584b902e95cf588aa14febf1e0b6dfa499c303c2
Reviewed-on: https://go-review.googlesource.com/29871
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/src/cmd/compile/internal/gc/const.go b/src/cmd/compile/internal/gc/const.go
index 6860656..39c662f 100644
--- a/src/cmd/compile/internal/gc/const.go
+++ b/src/cmd/compile/internal/gc/const.go
@@ -335,7 +335,7 @@
TUNSAFEPTR:
break
- // A nil literal may be converted to uintptr
+ // A nil literal may be converted to uintptr
// if it is an unsafe.Pointer
case TUINTPTR:
if n.Type.Etype == TUNSAFEPTR {
@@ -851,7 +851,7 @@
goto illegal
}
- // right must be unsigned.
+ // right must be unsigned.
// left can be ideal.
case OLSH, ORSH:
nr = defaultlit(nr, Types[TUINT])
@@ -994,7 +994,7 @@
v.U.(*Mpflt).Quo(rv.U.(*Mpflt))
- // The default case above would print 'ideal % ideal',
+ // The default case above would print 'ideal % ideal',
// which is not quite an ideal error.
case OMOD_ | CTFLT_:
if n.Diag == 0 {
diff --git a/src/cmd/compile/internal/gc/esc.go b/src/cmd/compile/internal/gc/esc.go
index 4857eb0..6c377ea 100644
--- a/src/cmd/compile/internal/gc/esc.go
+++ b/src/cmd/compile/internal/gc/esc.go
@@ -716,7 +716,7 @@
}
}
- // Filter out the following special case.
+ // Filter out the following special case.
//
// func (b *Buffer) Foo() {
// n, m := ...
@@ -952,7 +952,7 @@
nE.Escloopdepth = leftE.Escloopdepth
}
- // PPARAM is loop depth 1 always.
+ // PPARAM is loop depth 1 always.
// PPARAMOUT is loop depth 0 for writes
// but considered loop depth 1 for address-of,
// so that writing the address of one result
@@ -1148,7 +1148,7 @@
escflows(e, dst, src, e.stepAssign(step, originalDst, src, dstwhy))
}
- // Might be pointer arithmetic, in which case
+ // Might be pointer arithmetic, in which case
// the operands flow into the result.
// TODO(rsc): Decide what the story is here. This is unsettling.
case OADD,
diff --git a/src/cmd/compile/internal/gc/inl.go b/src/cmd/compile/internal/gc/inl.go
index 6687b1a..9a8dede 100644
--- a/src/cmd/compile/internal/gc/inl.go
+++ b/src/cmd/compile/internal/gc/inl.go
@@ -369,7 +369,7 @@
}
fallthrough
- // TODO do them here (or earlier),
+ // TODO do them here (or earlier),
// so escape analysis can avoid more heapmoves.
case OCLOSURE:
return n
@@ -407,7 +407,7 @@
}
}
- // if we just replaced arg in f(arg()) or return arg with an inlined call
+ // if we just replaced arg in f(arg()) or return arg with an inlined call
// and arg returns multiple values, glue as list
case ORETURN,
OCALLFUNC,
diff --git a/src/cmd/compile/internal/gc/order.go b/src/cmd/compile/internal/gc/order.go
index d099833..4f34049 100644
--- a/src/cmd/compile/internal/gc/order.go
+++ b/src/cmd/compile/internal/gc/order.go
@@ -538,7 +538,7 @@
ordermapassign(n, order)
cleantemp(t, order)
- // Special: make sure key is addressable,
+ // Special: make sure key is addressable,
// and make sure OINDEXMAP is not copied out.
case OAS2MAPR:
t := marktemp(order)
@@ -556,7 +556,7 @@
ordermapassign(n, order)
cleantemp(t, order)
- // Special: avoid copy of func call n->rlist->n.
+ // Special: avoid copy of func call n->rlist->n.
case OAS2FUNC:
t := marktemp(order)
@@ -565,7 +565,7 @@
ordermapassign(n, order)
cleantemp(t, order)
- // Special: use temporary variables to hold result,
+ // Special: use temporary variables to hold result,
// so that assertI2Tetc can take address of temporary.
// No temporary for blank assignment.
case OAS2DOTTYPE:
@@ -600,7 +600,7 @@
cleantemp(t, order)
- // Special: use temporary variables to hold result,
+ // Special: use temporary variables to hold result,
// so that chanrecv can take address of temporary.
case OAS2RECV:
t := marktemp(order)
@@ -620,11 +620,11 @@
n.List.Set([]*Node{tmp1, tmp2})
cleantemp(t, order)
- // Special: does not save n onto out.
+ // Special: does not save n onto out.
case OBLOCK, OEMPTY:
orderstmtlist(n.List, order)
- // Special: n->left is not an expression; save as is.
+ // Special: n->left is not an expression; save as is.
case OBREAK,
OCONTINUE,
ODCL,
@@ -637,7 +637,7 @@
ORETJMP:
order.out = append(order.out, n)
- // Special: handle call arguments.
+ // Special: handle call arguments.
case OCALLFUNC, OCALLINTER, OCALLMETH:
t := marktemp(order)
@@ -645,7 +645,7 @@
order.out = append(order.out, n)
cleantemp(t, order)
- // Special: order arguments to inner call but not call itself.
+ // Special: order arguments to inner call but not call itself.
case ODEFER, OPROC:
t := marktemp(order)
@@ -676,7 +676,7 @@
order.out = append(order.out, n)
cleantemp(t, order)
- // Clean temporaries from condition evaluation at
+ // Clean temporaries from condition evaluation at
// beginning of loop body and after for statement.
case OFOR:
t := marktemp(order)
@@ -690,7 +690,7 @@
order.out = append(order.out, n)
cleantemp(t, order)
- // Clean temporaries from condition at
+ // Clean temporaries from condition at
// beginning of both branches.
case OIF:
t := marktemp(order)
@@ -707,7 +707,7 @@
n.Rlist.Set(orderblock(n.Rlist))
order.out = append(order.out, n)
- // Special: argument will be converted to interface using convT2E
+ // Special: argument will be converted to interface using convT2E
// so make sure it is an addressable temporary.
case OPANIC:
t := marktemp(order)
@@ -932,7 +932,7 @@
order.out = append(order.out, n)
poptemp(t, order)
- // Special: value being sent is passed as a pointer; make it addressable.
+ // Special: value being sent is passed as a pointer; make it addressable.
case OSEND:
t := marktemp(order)
@@ -942,7 +942,7 @@
order.out = append(order.out, n)
cleantemp(t, order)
- // TODO(rsc): Clean temporaries more aggressively.
+ // TODO(rsc): Clean temporaries more aggressively.
// Note that because walkswitch will rewrite some of the
// switch into a binary search, this is not as easy as it looks.
// (If we ran that code here we could invoke orderstmt on
@@ -1010,7 +1010,7 @@
orderexprlist(n.List, order)
orderexprlist(n.Rlist, order)
- // Addition of strings turns into a function call.
+ // Addition of strings turns into a function call.
// Allocate a temporary to hold the strings.
// Fewer than 5 strings use direct runtime helpers.
case OADDSTR:
@@ -1085,7 +1085,7 @@
n = ordercopyexpr(n, n.Type, order, 0)
}
- // concrete type (not interface) argument must be addressable
+ // concrete type (not interface) argument must be addressable
// temporary to pass to runtime.
case OCONVIFACE:
n.Left = orderexpr(n.Left, order, nil)
diff --git a/src/cmd/compile/internal/gc/racewalk.go b/src/cmd/compile/internal/gc/racewalk.go
index 404088e..b47ac9d 100644
--- a/src/cmd/compile/internal/gc/racewalk.go
+++ b/src/cmd/compile/internal/gc/racewalk.go
@@ -188,7 +188,7 @@
instrumentnode(&n.Left, init, 0, 0)
goto ret
- // Instrument dst argument of runtime.writebarrier* calls
+ // Instrument dst argument of runtime.writebarrier* calls
// as we do not instrument runtime code.
// typedslicecopy is instrumented in runtime.
case OCALLFUNC:
diff --git a/src/cmd/compile/internal/gc/select.go b/src/cmd/compile/internal/gc/select.go
index 1e9d0f3..d999190 100644
--- a/src/cmd/compile/internal/gc/select.go
+++ b/src/cmd/compile/internal/gc/select.go
@@ -40,7 +40,7 @@
default:
yyerror("select case must be receive, send or assign recv")
- // convert x = <-c into OSELRECV(x, <-c).
+ // convert x = <-c into OSELRECV(x, <-c).
// remove implicit conversions; the eventual assignment
// will reintroduce them.
case OAS:
diff --git a/src/cmd/compile/internal/gc/typecheck.go b/src/cmd/compile/internal/gc/typecheck.go
index 66ebaa0..3ad869f 100644
--- a/src/cmd/compile/internal/gc/typecheck.go
+++ b/src/cmd/compile/internal/gc/typecheck.go
@@ -1705,7 +1705,7 @@
n.SetVal(n.Left.Val())
}
- // do not use stringtoarraylit.
+ // do not use stringtoarraylit.
// generated code and compiler memory footprint is better without it.
case OSTRARRAYBYTE:
break
diff --git a/src/cmd/compile/internal/gc/walk.go b/src/cmd/compile/internal/gc/walk.go
index dc0b0fb..e385d3e 100644
--- a/src/cmd/compile/internal/gc/walk.go
+++ b/src/cmd/compile/internal/gc/walk.go
@@ -826,7 +826,7 @@
}
n = liststmt(append([]*Node{r}, ll...))
- // x, y = <-c
+ // x, y = <-c
// orderstmt made sure x is addressable.
case OAS2RECV:
init.AppendNodes(&n.Ninit)
@@ -2654,7 +2654,7 @@
case PPARAM, PAUTO:
break
- // assignment to non-stack variable
+ // assignment to non-stack variable
// must be delayed if right has function calls.
default:
if r.Ullman >= UINF {