@@ -360,7 +360,6 @@ class BoxCacheEntry {
360
360
361
361
static SimpleGlobalCache<BoxCacheEntry, BoxesTag> Boxes;
362
362
363
- SWIFT_CC (swift)
364
363
BoxPair swift::swift_makeBoxUnique (OpaqueValue *buffer, const Metadata *type,
365
364
size_t alignMask) {
366
365
auto *inlineBuffer = reinterpret_cast <ValueBuffer*>(buffer);
@@ -386,7 +385,6 @@ BoxPair swift::swift_makeBoxUnique(OpaqueValue *buffer, const Metadata *type,
386
385
}
387
386
}
388
387
389
- SWIFT_CC (swift)
390
388
BoxPair swift::swift_allocBox (const Metadata *type) {
391
389
// Get the heap metadata for the box.
392
390
auto metadata = &Boxes.getOrInsert (type).first ->Data ;
@@ -557,19 +555,16 @@ void swift::swift_nonatomic_release_n(HeapObject *object, uint32_t n) {
557
555
object->refCounts .decrementAndMaybeDeinitNonAtomic (n);
558
556
}
559
557
560
- SWIFT_CC (swift)
561
558
size_t swift::swift_retainCount (HeapObject *object) {
562
559
if (isValidPointerForNativeRetain (object))
563
560
return object->refCounts .getCount ();
564
561
return 0 ;
565
562
}
566
563
567
- SWIFT_CC (swift)
568
564
size_t swift::swift_unownedRetainCount (HeapObject *object) {
569
565
return object->refCounts .getUnownedCount ();
570
566
}
571
567
572
- SWIFT_CC (swift)
573
568
size_t swift::swift_weakRetainCount (HeapObject *object) {
574
569
return object->refCounts .getWeakCount ();
575
570
}
@@ -1093,7 +1088,6 @@ WeakReference *swift::swift_weakTakeAssign(WeakReference *dest,
1093
1088
// / Returns true if the "immutable" flag is set on \p object.
1094
1089
// /
1095
1090
// / Used for runtime consistency checking of COW buffers.
1096
- SWIFT_CC (swift)
1097
1091
SWIFT_RUNTIME_EXPORT
1098
1092
bool _swift_isImmutableCOWBuffer (HeapObject *object) {
1099
1093
return object->refCounts .isImmutableCOWBuffer ();
@@ -1103,7 +1097,6 @@ bool _swift_isImmutableCOWBuffer(HeapObject *object) {
1103
1097
// / value of the flag.
1104
1098
// /
1105
1099
// / Used for runtime consistency checking of COW buffers.
1106
- SWIFT_CC (swift)
1107
1100
SWIFT_RUNTIME_EXPORT
1108
1101
bool _swift_setImmutableCOWBuffer (HeapObject *object, bool immutable) {
1109
1102
return object->refCounts .setIsImmutableCOWBuffer (immutable);
0 commit comments