Commit e26e3fa2 authored by mattn's avatar mattn Committed by Brad Fitzpatrick

reflect, runtime: gofmt

Change-Id: I5437b3a36181373d8ff33225d7520ab321459de9
Reviewed-on: https://go-review.googlesource.com/2084Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 1c0c611f
...@@ -34,13 +34,13 @@ func FuncLayout(t Type, rcvr Type) (frametype Type, argSize, retOffset uintptr, ...@@ -34,13 +34,13 @@ func FuncLayout(t Type, rcvr Type) (frametype Type, argSize, retOffset uintptr,
for i := uint32(0); i < s.n; i += 2 { for i := uint32(0); i < s.n; i += 2 {
stack = append(stack, s.data[i/8]>>(i%8)&3) stack = append(stack, s.data[i/8]>>(i%8)&3)
} }
if ft.kind & kindGCProg != 0 { if ft.kind&kindGCProg != 0 {
panic("can't handle gc programs") panic("can't handle gc programs")
} }
gcdata := (*[1000]byte)(ft.gc[0]) gcdata := (*[1000]byte)(ft.gc[0])
for i := uintptr(0); i < ft.size/ptrSize; i++ { for i := uintptr(0); i < ft.size/ptrSize; i++ {
gc = append(gc, gcdata[i/2] >> (i%2*4+2) & 3) gc = append(gc, gcdata[i/2]>>(i%2*4+2)&3)
} }
ptrs = ft.kind & kindNoPointers == 0 ptrs = ft.kind&kindNoPointers == 0
return return
} }
...@@ -150,10 +150,10 @@ func evacuated(b *bmap) bool { ...@@ -150,10 +150,10 @@ func evacuated(b *bmap) bool {
} }
func (b *bmap) overflow(t *maptype) *bmap { func (b *bmap) overflow(t *maptype) *bmap {
return *(**bmap)(add(unsafe.Pointer(b), uintptr(t.bucketsize) - regSize)) return *(**bmap)(add(unsafe.Pointer(b), uintptr(t.bucketsize)-regSize))
} }
func (b *bmap) setoverflow(t *maptype, ovf *bmap) { func (b *bmap) setoverflow(t *maptype, ovf *bmap) {
*(**bmap)(add(unsafe.Pointer(b), uintptr(t.bucketsize) - regSize)) = ovf *(**bmap)(add(unsafe.Pointer(b), uintptr(t.bucketsize)-regSize)) = ovf
} }
func makemap(t *maptype, hint int64) *hmap { func makemap(t *maptype, hint int64) *hmap {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment