@@ -13,12 +13,6 @@ func Indirect(v Value) Value {
13
13
return Value {reflectlite .Indirect (v .Value )}
14
14
}
15
15
16
- //go:linkname composeInterface runtime.composeInterface
17
- func composeInterface (unsafe.Pointer , unsafe.Pointer ) interface {}
18
-
19
- //go:linkname decomposeInterface runtime.decomposeInterface
20
- func decomposeInterface (i interface {}) (unsafe.Pointer , unsafe.Pointer )
21
-
22
16
func ValueOf (i interface {}) Value {
23
17
return Value {reflectlite .ValueOf (i )}
24
18
}
@@ -61,12 +55,6 @@ func (v Value) MapIndex(key Value) Value {
61
55
return Value {v .Value .MapIndex (key .Value )}
62
56
}
63
57
64
- //go:linkname hashmapNewIterator runtime.hashmapNewIterator
65
- func hashmapNewIterator () unsafe.Pointer
66
-
67
- //go:linkname hashmapNext runtime.hashmapNext
68
- func hashmapNext (m unsafe.Pointer , it unsafe.Pointer , key , value unsafe.Pointer ) bool
69
-
70
58
func (v Value ) MapRange () * MapIter {
71
59
return (* MapIter )(v .Value .MapRange ())
72
60
}
@@ -97,9 +85,6 @@ func (v Value) Convert(t Type) Value {
97
85
return Value {v .Value .Convert (toRawType (t ))}
98
86
}
99
87
100
- //go:linkname slicePanic runtime.slicePanic
101
- func slicePanic ()
102
-
103
88
func MakeSlice (typ Type , len , cap int ) Value {
104
89
return Value {reflectlite .MakeSlice (toRawType (typ ), len , cap )}
105
90
}
@@ -158,9 +143,6 @@ func (v Value) FieldByNameFunc(match func(string) bool) Value {
158
143
return Value {v .Value .FieldByNameFunc (match )}
159
144
}
160
145
161
- //go:linkname hashmapMake runtime.hashmapMake
162
- func hashmapMake (keySize , valueSize uintptr , sizeHint uintptr , alg uint8 ) unsafe.Pointer
163
-
164
146
type SelectDir int
165
147
166
148
const (
0 commit comments