@@ -178,13 +178,13 @@ internal func _conditionallyUnreachable() -> Never {
178
178
Builtin . conditionallyUnreachable ( )
179
179
}
180
180
181
- @inlinable // FIXME(sil-serialize-all)
181
+ @usableFromInline
182
182
@_silgen_name ( " _swift_isClassOrObjCExistentialType " )
183
183
internal func _swift_isClassOrObjCExistentialType< T> ( _ x: T . Type ) -> Bool
184
184
185
185
/// Returns `true` iff `T` is a class type or an `@objc` existential such as
186
186
/// `AnyObject`.
187
- @inlinable // FIXME(sil-serialize-all)
187
+ @inlinable
188
188
@inline ( __always)
189
189
internal func _isClassOrObjCExistential< T > ( _ x: T . Type ) -> Bool {
190
190
@@ -244,7 +244,7 @@ public func _unsafeUncheckedDowncast<T : AnyObject>(_ x: AnyObject, to type: T.T
244
244
245
245
import SwiftShims
246
246
247
- @inlinable // FIXME(sil-serialize-all)
247
+ @inlinable
248
248
@inline ( __always)
249
249
public func _getUnsafePointerToStoredProperties( _ x: AnyObject )
250
250
-> UnsafeMutableRawPointer {
@@ -298,28 +298,28 @@ public func _onFastPath() {
298
298
// Declare it here instead of RuntimeShims.h, because we need to specify
299
299
// the type of argument to be AnyClass. This is currently not possible
300
300
// when using RuntimeShims.h
301
- @inlinable // FIXME(sil-serialize-all)
301
+ @usableFromInline
302
302
@_silgen_name ( " _objcClassUsesNativeSwiftReferenceCounting " )
303
303
internal func _usesNativeSwiftReferenceCounting( _ theClass: AnyClass ) -> Bool
304
304
#else
305
- @inlinable // FIXME(sil-serialize-all)
305
+ @inlinable
306
306
@inline ( __always)
307
307
internal func _usesNativeSwiftReferenceCounting( _ theClass: AnyClass ) -> Bool {
308
308
return true
309
309
}
310
310
#endif
311
311
312
- @inlinable // FIXME(sil-serialize-all)
312
+ @usableFromInline
313
313
@_silgen_name ( " _getSwiftClassInstanceExtents " )
314
314
internal func getSwiftClassInstanceExtents( _ theClass: AnyClass )
315
315
-> ( negative: UInt , positive: UInt )
316
316
317
- @inlinable // FIXME(sil-serialize-all)
317
+ @usableFromInline
318
318
@_silgen_name ( " _getObjCClassInstanceExtents " )
319
319
internal func getObjCClassInstanceExtents( _ theClass: AnyClass )
320
320
-> ( negative: UInt , positive: UInt )
321
321
322
- @inlinable // FIXME(sil-serialize-all)
322
+ @inlinable
323
323
@inline ( __always)
324
324
internal func _class _getInstancePositiveExtentSize( _ theClass: AnyClass ) -> Int {
325
325
#if _runtime(_ObjC)
@@ -330,8 +330,7 @@ internal func _class_getInstancePositiveExtentSize(_ theClass: AnyClass) -> Int
330
330
}
331
331
332
332
@inlinable
333
- internal
334
- func _isValidAddress( _ address: UInt ) -> Bool {
333
+ internal func _isValidAddress( _ address: UInt ) -> Bool {
335
334
// TODO: define (and use) ABI max valid pointer value
336
335
return address >= _swift_abi_LeastValidPointerValue
337
336
}
@@ -340,17 +339,17 @@ func _isValidAddress(_ address: UInt) -> Bool {
340
339
341
340
// TODO(<rdar://problem/34837023>): Get rid of superfluous UInt constructor
342
341
// calls
343
- @inlinable // FIXME(sil-serialize-all)
342
+ @inlinable
344
343
internal var _objCTaggedPointerBits : UInt {
345
344
@inline ( __always) get { return UInt ( _swift_BridgeObject_TaggedPointerBits) }
346
345
}
347
- @inlinable // FIXME(sil-serialize-all)
346
+ @inlinable
348
347
internal var _objectPointerSpareBits : UInt {
349
348
@inline ( __always) get {
350
349
return UInt ( _swift_abi_SwiftSpareBitsMask) & ~ _objCTaggedPointerBits
351
350
}
352
351
}
353
- @inlinable // FIXME(sil-serialize-all)
352
+ @inlinable
354
353
internal var _objectPointerLowSpareBitShift : UInt {
355
354
@inline ( __always) get {
356
355
_sanityCheck ( _swift_abi_ObjCReservedLowBits < 2 ,
@@ -361,37 +360,37 @@ internal var _objectPointerLowSpareBitShift: UInt {
361
360
362
361
#if arch(i386) || arch(arm) || arch(powerpc64) || arch(powerpc64le) || arch(
363
362
s390x)
364
- @inlinable // FIXME(sil-serialize-all)
363
+ @inlinable
365
364
internal var _objectPointerIsObjCBit : UInt {
366
365
@inline ( __always) get { return 0x0000_0002 }
367
366
}
368
367
#else
369
- @inlinable // FIXME(sil-serialize-all)
368
+ @inlinable
370
369
internal var _objectPointerIsObjCBit : UInt {
371
370
@inline ( __always) get { return 0x4000_0000_0000_0000 }
372
371
}
373
372
#endif
374
373
375
374
/// Extract the raw bits of `x`.
376
- @inlinable // FIXME(sil-serialize-all)
375
+ @inlinable
377
376
@inline ( __always)
378
377
internal func _bitPattern( _ x: Builtin . BridgeObject ) -> UInt {
379
378
return UInt ( Builtin . castBitPatternFromBridgeObject ( x) )
380
379
}
381
380
382
381
/// Extract the raw spare bits of `x`.
383
- @inlinable // FIXME(sil-serialize-all)
382
+ @inlinable
384
383
@inline ( __always)
385
384
internal func _nonPointerBits( _ x: Builtin . BridgeObject ) -> UInt {
386
385
return _bitPattern ( x) & _objectPointerSpareBits
387
386
}
388
387
389
- @inlinable // FIXME(sil-serialize-all)
388
+ @inlinable
390
389
@inline ( __always)
391
390
internal func _isObjCTaggedPointer( _ x: AnyObject ) -> Bool {
392
391
return ( Builtin . reinterpretCast ( x) & _objCTaggedPointerBits) != 0
393
392
}
394
- @inlinable // FIXME(sil-serialize-all)
393
+ @inlinable
395
394
@inline ( __always)
396
395
internal func _isObjCTaggedPointer( _ x: UInt ) -> Bool {
397
396
return ( x & _objCTaggedPointerBits) != 0
@@ -507,24 +506,25 @@ public func _bridgeObject(
507
506
// NativeObject
508
507
//
509
508
510
- @inline ( __always)
511
509
@inlinable
510
+ @inline ( __always)
512
511
public func _nativeObject( fromNative x: AnyObject ) -> Builtin . NativeObject {
513
512
_sanityCheck ( !_isObjCTaggedPointer( x) )
514
513
let native = Builtin . unsafeCastToNativeObject ( x)
515
514
// _sanityCheck(native == Builtin.castToNativeObject(x))
516
515
return native
517
516
}
518
- @ inline ( __always )
517
+
519
518
@inlinable
519
+ @inline ( __always)
520
520
public func _nativeObject(
521
521
fromBridge x: Builtin . BridgeObject
522
522
) -> Builtin . NativeObject {
523
523
return _nativeObject ( fromNative: _bridgeObject ( toNative: x) )
524
524
}
525
525
526
- @inline ( __always)
527
526
@inlinable
527
+ @inline ( __always)
528
528
public func _nativeObject( toNative x: Builtin . NativeObject ) -> AnyObject {
529
529
return Builtin . castFromNativeObject ( x)
530
530
}
@@ -547,7 +547,7 @@ extension ManagedBufferPointer {
547
547
///
548
548
/// - Precondition: `bits & _objectPointerIsObjCBit == 0`,
549
549
/// `bits & _objectPointerSpareBits == bits`.
550
- @inlinable // FIXME(sil-serialize-all)
550
+ @inlinable
551
551
@inline ( __always)
552
552
internal func _makeNativeBridgeObject(
553
553
_ nativeObject: AnyObject , _ bits: UInt
@@ -560,7 +560,7 @@ internal func _makeNativeBridgeObject(
560
560
}
561
561
562
562
/// Create a `BridgeObject` around the given `objCObject`.
563
- @inlinable // FIXME(sil-serialize-all)
563
+ @inlinable
564
564
@inline ( __always)
565
565
public // @testable
566
566
func _makeObjCBridgeObject(
@@ -580,7 +580,7 @@ func _makeObjCBridgeObject(
580
580
/// 2. if `object` is a tagged pointer, `bits == 0`. Otherwise,
581
581
/// `object` is either a native object, or `bits ==
582
582
/// _objectPointerIsObjCBit`.
583
- @inlinable // FIXME(sil-serialize-all)
583
+ @inlinable
584
584
@inline ( __always)
585
585
internal func _makeBridgeObject(
586
586
_ object: AnyObject , _ bits: UInt
@@ -609,14 +609,13 @@ internal func _swift_class_getSuperclass(_ t: AnyClass) -> AnyClass?
609
609
610
610
/// Returns the superclass of `t`, if any. The result is `nil` if `t` is
611
611
/// a root class or class protocol.
612
- public
613
- func _getSuperclass( _ t: AnyClass ) -> AnyClass ? {
612
+ public func _getSuperclass( _ t: AnyClass ) -> AnyClass ? {
614
613
return _swift_class_getSuperclass ( t)
615
614
}
616
615
617
616
/// Returns the superclass of `t`, if any. The result is `nil` if `t` is
618
617
/// not a class, is a root class, or is a class protocol.
619
- @inlinable // FIXME(sil-serialize-all)
618
+ @inlinable
620
619
@inline ( __always)
621
620
public // @testable
622
621
func _getSuperclass( _ t: Any . Type ) -> AnyClass ? {
@@ -688,7 +687,7 @@ func _isOptional<T>(_ type: T.Type) -> Bool {
688
687
}
689
688
690
689
/// Extract an object reference from an Any known to contain an object.
691
- @inlinable // FIXME(sil-serialize-all)
690
+ @inlinable
692
691
internal func _unsafeDowncastToAnyObject( fromAny any: Any ) -> AnyObject {
693
692
_sanityCheck ( type ( of: any) is AnyObject . Type
694
693
|| type ( of: any) is AnyObject . Protocol,
@@ -712,7 +711,7 @@ internal func _unsafeDowncastToAnyObject(fromAny any: Any) -> AnyObject {
712
711
// definitions below after the stdlib's diagnostic passes run, so that the
713
712
// `staticReport`s don't fire while building the standard library, but do
714
713
// fire if they ever show up in code that uses the standard library.
715
- @inlinable // FIXME(sil-serialize-all)
714
+ @inlinable
716
715
@inline ( __always)
717
716
public // internal with availability
718
717
func _trueAfterDiagnostics( ) -> Builtin . Int1 {
0 commit comments