@@ -117,3 +117,147 @@ internal func _prespecialize() {
117
117
consume ( UnsafeBufferPointer< Int8> . self )
118
118
consume ( UnsafePointer< Int8> . self )
119
119
}
120
+
121
+ @_specializeExtension
122
+ extension Array {
123
+
124
+ @_specialize ( exported: true ,
125
+ availability: SwiftStdlib 5.9 , * ;
126
+ target: _endMutation( ) ,
127
+ where @_noMetadata Element : _Class)
128
+ @available ( SwiftStdlib 5 . 9 , * )
129
+ @usableFromInline
130
+ mutating func __specialize_class__endMutation( ) { Builtin . unreachable ( ) }
131
+
132
+ @_specialize ( exported: true ,
133
+ availability: SwiftStdlib 5.9 , * ;
134
+ target: _createNewBuffer( bufferIsUnique: minimumCapacity: growForAppend: ) ,
135
+ where @_noMetadata Element : _Class)
136
+ @available ( SwiftStdlib 5 . 9 , * )
137
+ @usableFromInline
138
+ mutating func __specialize_class__createNewBuffer( bufferIsUnique: Bool , minimumCapacity: Int , growForAppend: Bool ) { Builtin . unreachable ( ) }
139
+
140
+ @_specialize ( exported: true ,
141
+ availability: SwiftStdlib 5.9 , * ;
142
+ target: _makeUniqueAndReserveCapacityIfNotUnique( ) ,
143
+ where @_noMetadata Element : _Class)
144
+ @available ( SwiftStdlib 5 . 9 , * )
145
+ @usableFromInline
146
+ mutating func __specialize_class__makeUniqueAndReserveCapacityIfNotUnique( ) { Builtin . unreachable ( ) }
147
+
148
+ @_specialize ( exported: true ,
149
+ availability: SwiftStdlib 5.9 , * ;
150
+ target: _appendElementAssumeUniqueAndCapacity( _: newElement: ) ,
151
+ where @_noMetadata Element : _Class)
152
+ @available ( SwiftStdlib 5 . 9 , * )
153
+ @usableFromInline
154
+ mutating func __specialize_class__appendElementAssumeUniqueAndCapacity( _: Int , newElement: __owned Element) { Builtin . unreachable ( ) }
155
+ }
156
+
157
+ #if _runtime(_ObjC)
158
+ @_specializeExtension
159
+ extension _ArrayBuffer {
160
+ @_specialize ( exported: true ,
161
+ availability: SwiftStdlib 5.9 , * ;
162
+ target: _consumeAndCreateNew( bufferIsUnique: minimumCapacity: growForAppend: ) ,
163
+ where @_noMetadata Element : _Class)
164
+ @available ( SwiftStdlib 5 . 9 , * )
165
+ @usableFromInline
166
+ func __specialize_class__consumeAndCreateNew( bufferIsUnique: Bool , minimumCapacity: Int , growForAppend: Bool ) -> _ArrayBuffer < Element > { Builtin . unreachable ( ) }
167
+
168
+ @_specialize ( exported: true ,
169
+ availability: SwiftStdlib 5.9 , * ;
170
+ target: _copyContents( initializing: ) ,
171
+ where @_noMetadata Element : _Class)
172
+ @available ( SwiftStdlib 5 . 9 , * )
173
+ @usableFromInline
174
+ __consuming func __specialize_class__copyContents(
175
+ initializing buffer: UnsafeMutableBufferPointer < Element >
176
+ ) -> ( Iterator , UnsafeMutableBufferPointer < Element > . Index ) { Builtin . unreachable ( ) }
177
+
178
+ @_specialize ( exported: true ,
179
+ availability: SwiftStdlib 5.9 , * ;
180
+ target: _copyContents( subRange: initializing: ) ,
181
+ where @_noMetadata Element : _Class)
182
+ @available ( SwiftStdlib 5 . 9 , * )
183
+ @usableFromInline
184
+ __consuming func __specialize_class__copyContents( subRange: Range < Int > , initializing: Swift . UnsafeMutablePointer < Element > ) -> Swift . UnsafeMutablePointer < Element > { Builtin . unreachable ( ) }
185
+
186
+ @_specialize ( exported: true ,
187
+ availability: SwiftStdlib 5.9 , * ;
188
+ target: _getElementSlowPath( _: ) ,
189
+ where @_noMetadata Element : _Class)
190
+ @available ( SwiftStdlib 5 . 9 , * )
191
+ func __specialize_class__getElementSlowPath( _ i: Int ) -> AnyObject { Builtin . unreachable ( ) }
192
+ }
193
+ #endif
194
+
195
+ @_specializeExtension
196
+ extension ContiguousArray {
197
+ @_specialize ( exported: true ,
198
+ availability: SwiftStdlib 5.9 , * ;
199
+ target: _endMutation( ) ,
200
+ where @_noMetadata Element : _Class)
201
+ @available ( SwiftStdlib 5 . 9 , * )
202
+ @usableFromInline
203
+ mutating func __specialize_class__endMutation( ) { Builtin . unreachable ( ) }
204
+
205
+ @_specialize ( exported: true ,
206
+ availability: SwiftStdlib 5.9 , * ;
207
+ target: _createNewBuffer( bufferIsUnique: minimumCapacity: growForAppend: ) ,
208
+ where @_noMetadata Element : _Class)
209
+ @available ( SwiftStdlib 5 . 9 , * )
210
+ @usableFromInline
211
+ mutating func __specialize_class__createNewBuffer( bufferIsUnique: Bool , minimumCapacity: Int , growForAppend: Bool ) { Builtin . unreachable ( ) }
212
+
213
+ @_specialize ( exported: true ,
214
+ availability: SwiftStdlib 5.9 , * ;
215
+ target: _makeUniqueAndReserveCapacityIfNotUnique( ) ,
216
+ where @_noMetadata Element : _Class)
217
+ @available ( SwiftStdlib 5 . 9 , * )
218
+ @usableFromInline
219
+ mutating func __specialize_class__makeUniqueAndReserveCapacityIfNotUnique( ) { Builtin . unreachable ( ) }
220
+
221
+ @_specialize ( exported: true ,
222
+ availability: SwiftStdlib 5.9 , * ;
223
+ target: _appendElementAssumeUniqueAndCapacity( _: newElement: ) ,
224
+ where @_noMetadata Element : _Class)
225
+ @available ( SwiftStdlib 5 . 9 , * )
226
+ @usableFromInline
227
+ mutating func __specialize_class__appendElementAssumeUniqueAndCapacity( _: Int , newElement: __owned Element) { Builtin . unreachable ( ) }
228
+
229
+ @_specialize ( exported: true ,
230
+ availability: SwiftStdlib 5.9 , * ;
231
+ target: _reserveCapacityImpl( minimumCapacity: growForAppend: ) ,
232
+ where @_noMetadata Element : _Class)
233
+ @available ( SwiftStdlib 5 . 9 , * )
234
+ @usableFromInline
235
+ mutating func __specialize_class__reserveCapacityImpl( minimumCapacity: Int , growForAppend: Bool ) { Builtin . unreachable ( ) }
236
+
237
+ @_specialize ( exported: true ,
238
+ availability: SwiftStdlib 5.9 , * ;
239
+ target: _reserveCapacityAssumingUniqueBuffer( oldCount: ) ,
240
+ where @_noMetadata Element : _Class)
241
+ @available ( SwiftStdlib 5 . 9 , * )
242
+ @usableFromInline
243
+ mutating func __specialize_class__reserveCapacityAssumingUniqueBuffer( oldCount: Int ) { Builtin . unreachable ( ) }
244
+
245
+ @_specialize ( exported: true ,
246
+ availability: SwiftStdlib 5.9 , * ;
247
+ target: reserveCapacity( _: ) ,
248
+ where @_noMetadata Element : _Class)
249
+ @available ( SwiftStdlib 5 . 9 , * )
250
+ @usableFromInline
251
+ mutating func __specialize_class__reserveCapacity( _ minimumCapacity: Int ) { Builtin . unreachable ( ) }
252
+ }
253
+
254
+ @_specializeExtension
255
+ extension _ContiguousArrayBuffer {
256
+ @_specialize ( exported: true ,
257
+ availability: SwiftStdlib 5.9 , * ;
258
+ target: _consumeAndCreateNew( bufferIsUnique: minimumCapacity: growForAppend: ) ,
259
+ where @_noMetadata Element : _Class)
260
+ @available ( SwiftStdlib 5 . 9 , * )
261
+ @usableFromInline
262
+ func __specialize_class__consumeAndCreateNew( bufferIsUnique: Bool , minimumCapacity: Int , growForAppend: Bool ) -> _ContiguousArrayBuffer < Element > { Builtin . unreachable ( ) }
263
+ }
0 commit comments