Skip to content

Commit 3a6de89

Browse files
Merge pull request #5484 from swiftwasm/katei/minimize-heaobject-patch
[wasm] Remove unnecessary SWIFT_CC(swift) declarations
2 parents 61e1384 + 22d518a commit 3a6de89

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

stdlib/public/runtime/HeapObject.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ class BoxCacheEntry {
360360

361361
static SimpleGlobalCache<BoxCacheEntry, BoxesTag> Boxes;
362362

363-
SWIFT_CC(swift)
364363
BoxPair 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)
390388
BoxPair 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)
561558
size_t swift::swift_retainCount(HeapObject *object) {
562559
if (isValidPointerForNativeRetain(object))
563560
return object->refCounts.getCount();
564561
return 0;
565562
}
566563

567-
SWIFT_CC(swift)
568564
size_t swift::swift_unownedRetainCount(HeapObject *object) {
569565
return object->refCounts.getUnownedCount();
570566
}
571567

572-
SWIFT_CC(swift)
573568
size_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)
10971091
SWIFT_RUNTIME_EXPORT
10981092
bool _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)
11071100
SWIFT_RUNTIME_EXPORT
11081101
bool _swift_setImmutableCOWBuffer(HeapObject *object, bool immutable) {
11091102
return object->refCounts.setIsImmutableCOWBuffer(immutable);

0 commit comments

Comments
 (0)