github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/third_party/gofrontend/libgo/go/reflect/export_test.go (about) 1 // Copyright 2012 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package reflect 6 7 // MakeRO returns a copy of v with the read-only flag set. 8 func MakeRO(v Value) Value { 9 v.flag |= flagStickyRO 10 return v 11 } 12 13 // IsRO reports whether v's read-only flag is set. 14 func IsRO(v Value) bool { 15 return v.flag&flagStickyRO != 0 16 } 17 18 var CallGC = &callGC 19 20 const PtrSize = ptrSize 21 22 func FuncLayout(t Type, rcvr Type) (frametype Type, argSize, retOffset uintptr, stack []byte, gc []byte, ptrs bool) { 23 return 24 } 25 26 func TypeLinks() []string { 27 return nil 28 } 29 30 var GCBits = gcbits 31 32 // Will be provided by runtime eventually. 33 func gcbits(interface{}) []byte { 34 return nil 35 } 36 37 func MapBucketOf(x, y Type) Type { 38 return nil 39 } 40 41 func CachedBucketOf(m Type) Type { 42 return nil 43 }