@@ -64,19 +64,19 @@ internal struct _SliceBuffer<Element>
64
64
}
65
65
}
66
66
67
- @inlinable // FIXME(sil-serialize-all)
67
+ @inlinable
68
68
internal var _hasNativeBuffer : Bool {
69
69
return ( endIndexAndFlags & 1 ) != 0
70
70
}
71
71
72
- @inlinable // FIXME(sil-serialize-all)
72
+ @inlinable
73
73
internal var nativeBuffer : NativeBuffer {
74
74
_sanityCheck ( _hasNativeBuffer)
75
75
return NativeBuffer (
76
76
owner as? __ContiguousArrayStorageBase ?? _emptyArrayStorage)
77
77
}
78
78
79
- @inlinable // FIXME(sil-serialize-all)
79
+ @inlinable
80
80
internal var nativeOwner : AnyObject {
81
81
_sanityCheck ( _hasNativeBuffer, " Expect a native array " )
82
82
return owner
@@ -88,7 +88,7 @@ internal struct _SliceBuffer<Element>
88
88
/// - Precondition: This buffer is backed by a uniquely-referenced
89
89
/// `_ContiguousArrayBuffer` and
90
90
/// `insertCount <= numericCast(newValues.count)`.
91
- @inlinable // FIXME(sil-serialize-all)
91
+ @inlinable
92
92
internal mutating func replaceSubrange< C> (
93
93
_ subrange: Range < Int > ,
94
94
with insertCount: Int ,
@@ -125,7 +125,7 @@ internal struct _SliceBuffer<Element>
125
125
/// A value that identifies the storage used by the buffer. Two
126
126
/// buffers address the same elements when they have the same
127
127
/// identity and count.
128
- @inlinable // FIXME(sil-serialize-all)
128
+ @inlinable
129
129
internal var identity : UnsafeRawPointer {
130
130
return UnsafeRawPointer ( firstElementAddress)
131
131
}
@@ -136,12 +136,12 @@ internal struct _SliceBuffer<Element>
136
136
@usableFromInline
137
137
internal let subscriptBaseAddress : UnsafeMutablePointer < Element >
138
138
139
- @inlinable // FIXME(sil-serialize-all)
139
+ @inlinable
140
140
internal var firstElementAddress : UnsafeMutablePointer < Element > {
141
141
return subscriptBaseAddress + startIndex
142
142
}
143
143
144
- @inlinable // FIXME(sil-serialize-all)
144
+ @inlinable
145
145
internal var firstElementAddressIfContiguous : UnsafeMutablePointer < Element > ? {
146
146
return firstElementAddress
147
147
}
@@ -152,7 +152,7 @@ internal struct _SliceBuffer<Element>
152
152
153
153
//===--- Non-essential bits ---------------------------------------------===//
154
154
155
- @inlinable // FIXME(sil-serialize-all)
155
+ @inlinable
156
156
internal mutating func requestUniqueMutableBackingBuffer(
157
157
minimumCapacity: Int
158
158
) -> NativeBuffer ? {
@@ -210,7 +210,7 @@ internal struct _SliceBuffer<Element>
210
210
/// If this buffer is backed by a `_ContiguousArrayBuffer`
211
211
/// containing the same number of elements as `self`, return it.
212
212
/// Otherwise, return `nil`.
213
- @inlinable // FIXME(sil-serialize-all)
213
+ @inlinable
214
214
internal func requestNativeBuffer( ) -> _ContiguousArrayBuffer < Element > ? {
215
215
_invariantCheck ( )
216
216
if _fastPath ( _hasNativeBuffer && nativeBuffer. count == count) {
@@ -219,7 +219,7 @@ internal struct _SliceBuffer<Element>
219
219
return nil
220
220
}
221
221
222
- @inlinable // FIXME(sil-serialize-all)
222
+ @inlinable
223
223
@discardableResult
224
224
internal __consuming func _copyContents(
225
225
subRange bounds: Range < Int > ,
@@ -235,12 +235,12 @@ internal struct _SliceBuffer<Element>
235
235
}
236
236
237
237
/// True, if the array is native and does not need a deferred type check.
238
- @inlinable // FIXME(sil-serialize-all)
238
+ @inlinable
239
239
internal var arrayPropertyIsNativeTypeChecked : Bool {
240
240
return _hasNativeBuffer
241
241
}
242
242
243
- @inlinable // FIXME(sil-serialize-all)
243
+ @inlinable
244
244
internal var count : Int {
245
245
get {
246
246
return endIndex - startIndex
@@ -257,13 +257,13 @@ internal struct _SliceBuffer<Element>
257
257
258
258
/// Traps unless the given `index` is valid for subscripting, i.e.
259
259
/// `startIndex ≤ index < endIndex`
260
- @inlinable // FIXME(sil-serialize-all)
260
+ @inlinable
261
261
internal func _checkValidSubscript( _ index : Int ) {
262
262
_precondition (
263
263
index >= startIndex && index < endIndex, " Index out of bounds " )
264
264
}
265
265
266
- @inlinable // FIXME(sil-serialize-all)
266
+ @inlinable
267
267
internal var capacity : Int {
268
268
let count = self . count
269
269
if _slowPath ( !_hasNativeBuffer) {
@@ -277,12 +277,12 @@ internal struct _SliceBuffer<Element>
277
277
return count
278
278
}
279
279
280
- @inlinable // FIXME(sil-serialize-all)
280
+ @inlinable
281
281
internal mutating func isUniquelyReferenced( ) -> Bool {
282
282
return isKnownUniquelyReferenced ( & owner)
283
283
}
284
284
285
- @inlinable // FIXME(sil-serialize-all)
285
+ @inlinable
286
286
internal func getElement( _ i: Int ) -> Element {
287
287
_sanityCheck ( i >= startIndex, " slice index is out of range (before startIndex) " )
288
288
_sanityCheck ( i < endIndex, " slice index is out of range " )
@@ -293,7 +293,7 @@ internal struct _SliceBuffer<Element>
293
293
///
294
294
/// - Precondition: `position` is a valid position in `self` and
295
295
/// `position != endIndex`.
296
- @inlinable // FIXME(sil-serialize-all)
296
+ @inlinable
297
297
internal subscript( position: Int ) -> Element {
298
298
get {
299
299
return getElement ( position)
@@ -305,7 +305,7 @@ internal struct _SliceBuffer<Element>
305
305
}
306
306
}
307
307
308
- @inlinable // FIXME(sil-serialize-all)
308
+ @inlinable
309
309
internal subscript( bounds: Range < Int > ) -> _SliceBuffer {
310
310
get {
311
311
_sanityCheck ( bounds. lowerBound >= startIndex)
@@ -334,7 +334,7 @@ internal struct _SliceBuffer<Element>
334
334
///
335
335
/// `endIndex` is always reachable from `startIndex` by zero or more
336
336
/// applications of `index(after:)`.
337
- @inlinable // FIXME(sil-serialize-all)
337
+ @inlinable
338
338
internal var endIndex : Int {
339
339
get {
340
340
return Int ( endIndexAndFlags >> 1 )
@@ -371,7 +371,7 @@ internal struct _SliceBuffer<Element>
371
371
}
372
372
373
373
extension _SliceBuffer {
374
- @inlinable // FIXME(sil-serialize-all)
374
+ @inlinable
375
375
internal __consuming func _copyToContiguousArray( ) -> ContiguousArray < Element > {
376
376
if _hasNativeBuffer {
377
377
let n = nativeBuffer
0 commit comments