mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
all: fix spelling
Change-Id: I63eb42f3ce5ca452279120a5b33518f4ce16be45 GitHub-Last-Rev: a88f2f72bef402344582ae997a4907457002b5df GitHub-Pull-Request: golang/go#52951 Reviewed-on: https://go-review.googlesource.com/c/go/+/406843 Run-TryBot: Robert Griesemer <gri@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
1c6706c71b
commit
20db15ce12
@ -161,7 +161,7 @@ func findIndVar(f *Func) []indVar {
|
|||||||
|
|
||||||
// Up to now we extracted the induction variable (ind),
|
// Up to now we extracted the induction variable (ind),
|
||||||
// the increment delta (inc), the temporary sum (nxt),
|
// the increment delta (inc), the temporary sum (nxt),
|
||||||
// the mininum value (min) and the maximum value (max).
|
// the minimum value (min) and the maximum value (max).
|
||||||
//
|
//
|
||||||
// We also know that ind has the form (Phi min nxt) where
|
// We also know that ind has the form (Phi min nxt) where
|
||||||
// nxt is (Add inc nxt) which means: 1) inc dominates nxt
|
// nxt is (Add inc nxt) which means: 1) inc dominates nxt
|
||||||
|
@ -733,7 +733,7 @@ func (p *iimporter) typAt(off uint64) *types.Type {
|
|||||||
}
|
}
|
||||||
t = p.newReader(off-predeclReserved, nil).typ1()
|
t = p.newReader(off-predeclReserved, nil).typ1()
|
||||||
// Ensure size is calculated for imported types. Since CL 283313, the compiler
|
// Ensure size is calculated for imported types. Since CL 283313, the compiler
|
||||||
// does not compile the function immediately when it sees them. Instead, funtions
|
// does not compile the function immediately when it sees them. Instead, functions
|
||||||
// are pushed to compile queue, then draining from the queue for compiling.
|
// are pushed to compile queue, then draining from the queue for compiling.
|
||||||
// During this process, the size calculation is disabled, so it is not safe for
|
// During this process, the size calculation is disabled, so it is not safe for
|
||||||
// calculating size during SSA generation anymore. See issue #44732.
|
// calculating size during SSA generation anymore. See issue #44732.
|
||||||
|
@ -295,7 +295,7 @@ func ReadDir(dir string) ([]fs.FileInfo, error) {
|
|||||||
files[name] = missingFile(name)
|
files[name] = missingFile(name)
|
||||||
continue
|
continue
|
||||||
} else if f.IsDir() {
|
} else if f.IsDir() {
|
||||||
return nil, fmt.Errorf("for overlay of %q to %q: overlay Replace entries can't point to dirctories",
|
return nil, fmt.Errorf("for overlay of %q to %q: overlay Replace entries can't point to directories",
|
||||||
filepath.Join(dir, name), to.actualFilePath)
|
filepath.Join(dir, name), to.actualFilePath)
|
||||||
}
|
}
|
||||||
// Add a fileinfo for the overlaid file, so that it has
|
// Add a fileinfo for the overlaid file, so that it has
|
||||||
|
@ -7412,7 +7412,7 @@ func (c *ctxt7) opextr(p *obj.Prog, a obj.As, v int32, rn int, rm int, rt int) u
|
|||||||
return o
|
return o
|
||||||
}
|
}
|
||||||
|
|
||||||
/* genrate instruction encoding for ldp and stp series */
|
/* generate instruction encoding for ldp and stp series */
|
||||||
func (c *ctxt7) opldpstp(p *obj.Prog, o *Optab, vo int32, rbase, rl, rh, ldp uint32) uint32 {
|
func (c *ctxt7) opldpstp(p *obj.Prog, o *Optab, vo int32, rbase, rl, rh, ldp uint32) uint32 {
|
||||||
wback := false
|
wback := false
|
||||||
if o.scond == C_XPOST || o.scond == C_XPRE {
|
if o.scond == C_XPOST || o.scond == C_XPRE {
|
||||||
|
@ -204,7 +204,7 @@ const ( // comments from func aclass in asmz.go
|
|||||||
C_DCON // constant (int64 or uint64)
|
C_DCON // constant (int64 or uint64)
|
||||||
C_SACON // computed address, 16-bit displacement, possibly SP-relative
|
C_SACON // computed address, 16-bit displacement, possibly SP-relative
|
||||||
C_LACON // computed address, 32-bit displacement, possibly SP-relative
|
C_LACON // computed address, 32-bit displacement, possibly SP-relative
|
||||||
C_DACON // computed address, 64-bit displacment?
|
C_DACON // computed address, 64-bit displacement?
|
||||||
C_SBRA // short branch
|
C_SBRA // short branch
|
||||||
C_LBRA // long branch
|
C_LBRA // long branch
|
||||||
C_SAUTO // short auto
|
C_SAUTO // short auto
|
||||||
|
@ -155,7 +155,7 @@ func TestTempDir_BadDir(t *testing.T) {
|
|||||||
badDir := filepath.Join(dir, "not-exist")
|
badDir := filepath.Join(dir, "not-exist")
|
||||||
_, err = TempDir(badDir, "foo")
|
_, err = TempDir(badDir, "foo")
|
||||||
if pe, ok := err.(*fs.PathError); !ok || !os.IsNotExist(err) || pe.Path != badDir {
|
if pe, ok := err.(*fs.PathError); !ok || !os.IsNotExist(err) || pe.Path != badDir {
|
||||||
t.Errorf("TempDir error = %#v; want PathError for path %q satisifying os.IsNotExist", err, badDir)
|
t.Errorf("TempDir error = %#v; want PathError for path %q satisfying os.IsNotExist", err, badDir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ func TestMkdirTempBadDir(t *testing.T) {
|
|||||||
badDir := filepath.Join(dir, "not-exist")
|
badDir := filepath.Join(dir, "not-exist")
|
||||||
_, err = MkdirTemp(badDir, "foo")
|
_, err = MkdirTemp(badDir, "foo")
|
||||||
if pe, ok := err.(*fs.PathError); !ok || !IsNotExist(err) || pe.Path != badDir {
|
if pe, ok := err.(*fs.PathError); !ok || !IsNotExist(err) || pe.Path != badDir {
|
||||||
t.Errorf("TempDir error = %#v; want PathError for path %q satisifying IsNotExist", err, badDir)
|
t.Errorf("TempDir error = %#v; want PathError for path %q satisfying IsNotExist", err, badDir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1775,7 +1775,7 @@ GLOBL debugCallFrameTooLarge<>(SB), RODATA, $20 // Size duplicated below
|
|||||||
// 2. Push the current PC on the stack (updating SP).
|
// 2. Push the current PC on the stack (updating SP).
|
||||||
// 3. Write the desired argument frame size at SP-16 (using the SP
|
// 3. Write the desired argument frame size at SP-16 (using the SP
|
||||||
// after step 2).
|
// after step 2).
|
||||||
// 4. Save all machine registers (including flags and XMM reigsters)
|
// 4. Save all machine registers (including flags and XMM registers)
|
||||||
// so they can be restored later by the debugger.
|
// so they can be restored later by the debugger.
|
||||||
// 5. Set the PC to debugCallV2 and resume execution.
|
// 5. Set the PC to debugCallV2 and resume execution.
|
||||||
//
|
//
|
||||||
|
@ -1259,7 +1259,7 @@ GLOBL debugCallFrameTooLarge<>(SB), RODATA, $20 // Size duplicated below
|
|||||||
// 3. Store the current LR in (SP) (using the SP after step 2).
|
// 3. Store the current LR in (SP) (using the SP after step 2).
|
||||||
// 4. Store the current PC in the LR register.
|
// 4. Store the current PC in the LR register.
|
||||||
// 5. Write the desired argument frame size at SP-16
|
// 5. Write the desired argument frame size at SP-16
|
||||||
// 6. Save all machine registers (including flags and fpsimd reigsters)
|
// 6. Save all machine registers (including flags and fpsimd registers)
|
||||||
// so they can be restored later by the debugger.
|
// so they can be restored later by the debugger.
|
||||||
// 7. Set the PC to debugCallV2 and resume execution.
|
// 7. Set the PC to debugCallV2 and resume execution.
|
||||||
//
|
//
|
||||||
|
@ -1153,7 +1153,7 @@ func (c *gcControllerState) trigger() (uint64, uint64) {
|
|||||||
|
|
||||||
// Below this point, c.heapMarked < goal.
|
// Below this point, c.heapMarked < goal.
|
||||||
|
|
||||||
// heapMarked is our absolute minumum, and it's possible the trigger
|
// heapMarked is our absolute minimum, and it's possible the trigger
|
||||||
// bound we get from heapGoalinternal is less than that.
|
// bound we get from heapGoalinternal is less than that.
|
||||||
if minTrigger < c.heapMarked {
|
if minTrigger < c.heapMarked {
|
||||||
minTrigger = c.heapMarked
|
minTrigger = c.heapMarked
|
||||||
|
@ -201,7 +201,7 @@ claimLoop:
|
|||||||
|
|
||||||
// Increase the popped count. If we are the last possible popper
|
// Increase the popped count. If we are the last possible popper
|
||||||
// in the block (note that bottom need not equal spanSetBlockEntries-1
|
// in the block (note that bottom need not equal spanSetBlockEntries-1
|
||||||
// due to races) then it's our resposibility to free the block.
|
// due to races) then it's our responsibility to free the block.
|
||||||
//
|
//
|
||||||
// If we increment popped to spanSetBlockEntries, we can be sure that
|
// If we increment popped to spanSetBlockEntries, we can be sure that
|
||||||
// we're the last popper for this block, and it's thus safe to free it.
|
// we're the last popper for this block, and it's thus safe to free it.
|
||||||
|
@ -319,7 +319,7 @@ TEXT runtime·usleep2(SB),NOSPLIT|NOFRAME,$0-4
|
|||||||
// Runs on OS stack.
|
// Runs on OS stack.
|
||||||
// duration (in -100ns units) is in dt+0(FP).
|
// duration (in -100ns units) is in dt+0(FP).
|
||||||
// g is valid.
|
// g is valid.
|
||||||
// TODO: neeeds to be implemented properly.
|
// TODO: needs to be implemented properly.
|
||||||
TEXT runtime·usleep2HighRes(SB),NOSPLIT|NOFRAME,$0-4
|
TEXT runtime·usleep2HighRes(SB),NOSPLIT|NOFRAME,$0-4
|
||||||
B runtime·abort(SB)
|
B runtime·abort(SB)
|
||||||
|
|
||||||
|
@ -371,7 +371,7 @@ TEXT runtime·usleep2(SB),NOSPLIT,$32-4
|
|||||||
// Runs on OS stack.
|
// Runs on OS stack.
|
||||||
// duration (in -100ns units) is in dt+0(FP).
|
// duration (in -100ns units) is in dt+0(FP).
|
||||||
// g is valid.
|
// g is valid.
|
||||||
// TODO: neeeds to be implemented properly.
|
// TODO: needs to be implemented properly.
|
||||||
TEXT runtime·usleep2HighRes(SB),NOSPLIT,$0-4
|
TEXT runtime·usleep2HighRes(SB),NOSPLIT,$0-4
|
||||||
B runtime·abort(SB)
|
B runtime·abort(SB)
|
||||||
|
|
||||||
|
@ -19,5 +19,5 @@ func f() (a, b M) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
bugs/bug150.go:13: reorder2: too many funcation calls evaluating parameters
|
bugs/bug150.go:13: reorder2: too many function calls evaluating parameters
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user