@@ -360,7 +360,6 @@ class BoxCacheEntry {
360360
361361static SimpleGlobalCache<BoxCacheEntry, BoxesTag> Boxes;
362362
363- SWIFT_CC (swift)
364363BoxPair swift::swift_makeBoxUnique (OpaqueValue *buffer, const Metadata *type,
365364 size_t alignMask) {
366365 auto *inlineBuffer = reinterpret_cast <ValueBuffer*>(buffer);
@@ -386,7 +385,6 @@ BoxPair swift::swift_makeBoxUnique(OpaqueValue *buffer, const Metadata *type,
386385 }
387386}
388387
389- SWIFT_CC (swift)
390388BoxPair swift::swift_allocBox (const Metadata *type) {
391389 // Get the heap metadata for the box.
392390 auto metadata = &Boxes.getOrInsert (type).first ->Data ;
@@ -557,19 +555,16 @@ void swift::swift_nonatomic_release_n(HeapObject *object, uint32_t n) {
557555 object->refCounts .decrementAndMaybeDeinitNonAtomic (n);
558556}
559557
560- SWIFT_CC (swift)
561558size_t swift::swift_retainCount (HeapObject *object) {
562559 if (isValidPointerForNativeRetain (object))
563560 return object->refCounts .getCount ();
564561 return 0 ;
565562}
566563
567- SWIFT_CC (swift)
568564size_t swift::swift_unownedRetainCount (HeapObject *object) {
569565 return object->refCounts .getUnownedCount ();
570566}
571567
572- SWIFT_CC (swift)
573568size_t swift::swift_weakRetainCount (HeapObject *object) {
574569 return object->refCounts .getWeakCount ();
575570}
@@ -1093,7 +1088,6 @@ WeakReference *swift::swift_weakTakeAssign(WeakReference *dest,
10931088// / Returns true if the "immutable" flag is set on \p object.
10941089// /
10951090// / Used for runtime consistency checking of COW buffers.
1096- SWIFT_CC (swift)
10971091SWIFT_RUNTIME_EXPORT
10981092bool _swift_isImmutableCOWBuffer (HeapObject *object) {
10991093 return object->refCounts .isImmutableCOWBuffer ();
@@ -1103,7 +1097,6 @@ bool _swift_isImmutableCOWBuffer(HeapObject *object) {
11031097// / value of the flag.
11041098// /
11051099// / Used for runtime consistency checking of COW buffers.
1106- SWIFT_CC (swift)
11071100SWIFT_RUNTIME_EXPORT
11081101bool _swift_setImmutableCOWBuffer (HeapObject *object, bool immutable) {
11091102 return object->refCounts .setIsImmutableCOWBuffer (immutable);
0 commit comments