Debugger hook. Calling this stops the debugger with a message and details
about the issues. Called by overlays.
This function dumps one line of a stack trace. It is assumed that \p framePC
is the address of the stack frame at index \p index. If \p shortOutput is
true, this functions prints only the name of the symbol and offset, ignores
\p index argument and omits the newline.
Allocates a heap object that can contain a value of the given type.
Returns a Box structure containing a HeapObject* pointer to the
allocated object, and a pointer to the value inside the heap object.
The value pointer points to an uninitialized buffer of size and alignment
appropriate to store a value of the given type.
The heap object has an initial retain count of 1, and its metadata is set
such that destroying the heap object destroys the contained value.
Returns the address of a heap object representing all empty box types.
Allocates a new heap object. The returned memory is
uninitialized outside of the heap-object header. The object
has an initial retain count of 1, and its metadata is set to
the given value.
Decrement the strong retain count of a bridged object by n.
/
/************************* OTHER REFERENCE-COUNTING **************************/
/
Increment the strong retain count of a bridged object by n.
Deallocate the given memory allocated by swift_allocBox; it was returned
by swift_allocBox but is otherwise in an unknown state. The given Metadata
pointer must be the same metadata pointer that was passed to swift_allocBox
when the memory was allocated.
Deallocate the given memory.
Deallocate the given memory.
Deallocate the given memory after destroying instance variables.
Deallocate an uninitialized object with a strong reference count of +1.
Return the mangled name of a Swift type represented by a metadata object.
func getMangledTypeName( type: Any.Type)
-> (UnsafePointer, Int)
Return the human-readable full name of the mangled function name passed in.
func getMangledTypeName( mangledName: UnsafePointer,
mangledNameLength: UInt)
-> (UnsafePointer, Int)
Return the name of a Swift type represented by a metadata object.
func getTypeName( type: Any.Type, qualified: Bool)
-> (UnsafePointer, Int)
Initializes the object header of a stack allocated object.
Initializes the object header of a static object which is statically
allocated in the data section.
Returns true if an object is in the process of being deallocated.
Is this native Swift pointer non-null and has a reference count greater than
one.
This runtime call will print an error message with file name and location if
the closure is escaping but it will not abort.
Is this pointer a non-null unique reference to an object?
Is this pointer a non-null unique reference to an object
that uses Swift reference counting?
Is this non-null pointer a unique reference to an object
that uses Swift reference counting?
Is this non-null BridgeObject a unique reference to an object
that uses Swift reference counting?
Is this native Swift pointer a non-null unique reference to
an object?
Is this non-null pointer a unique reference to an object?
Is this non-null BridgeObject a unique reference to an object?
Is this non-null native Swift pointer a unique reference to
an object?
Performs a uniqueness check on the pointer to a box structure. If the check
fails allocates a new box and stores the pointer in the buffer.
Decrement the strong retain count of a bridged object by n.
Increment the strong retain count of a bridged object by n.
Decrement the strong retain count of an object which might not be a native
Swift object.
Decrement the strong retain count of an object which might not be a native
Swift object by n.
Increment the strong retain count of an object which might not be a native
Swift object.
Increment the strong retain count of an object which might not be a native
Swift object by n.
Decrement the unowned retain count.
Decrement the unowned retain count by n.
Increment the unowned retain count.
Increment the strong retain count of an object, aborting if it has
been deallocated.
Increment the strong retain count of an object which may have been
deallocated, aborting if it has been deallocated, and decrement its
unowned reference count.
Increment the unowned retain count by n.
Project the value out of a box. object
must have been allocated
using swift_allocBox
, or by the compiler using a statically-emitted
box metadata object.
Atomically decrements the retain count of an object. If the
retain count reaches zero, the object is destroyed as follows:
Atomically decrements the retain count of an object n times. If the retain
count reaches zero, the object is destroyed
Atomically increments the retain count of an object.
Sets the RC_DEALLOCATING_FLAG flag. This is done non-atomically.
The strong reference count of \p object must be 1 and no other thread may
retain the object during executing this function.
Atomically increments the reference count of an object, unless it has
already been destroyed. Returns nil if the object is dead.
Decrement the strong retain count of an object which might not be a native
Swift object.
Decrement the strong retain count of an object which might not be a native
Swift object by n.
Increment the strong retain count of an object which might not be a native
Swift object.
Increment the strong retain count of an object which might not be a native
Swift object by n.
Assign to an unowned reference holding an object with unknown reference
counting.
\return ref
Copy-assign an unowned reference variable from another when either
or both variables might not refer to a native Swift object.
\return dest
Copy-initialize an unowned reference variable from one that might not
refer to a native Swift object.
\return dest
Destroy an unowned reference to an object with unknown reference counting.
Initialize an unowned reference to an object with unknown reference
counting.
\return ref
Return *ref == value
when ref might not refer to a native Swift object.
Does not halt when *ref is a dead object as long as *ref != value.
Load from an unowned reference to an object with unknown reference
counting.
Take-assign an unowned reference variable from another when either
or both variables might not refer to a native Swift object.
\return dest
Take-initialize an unowned reference variable from one that might not
refer to a native Swift object.
Take from an unowned reference to an object with unknown reference
counting.
Assign a new value to a weak reference.
Copy-assign a weak reference variable from another when either
or both variables might not refer to a native Swift object.
\return dest
Copy-initialize a weak reference variable from one that might not
refer to a native Swift object.
\return dest
Destroy a weak reference variable that might not refer to a native
Swift object.
Initialize a weak reference.
Load a value from a weak reference, much like swift_weakLoadStrong
but without requiring the variable to refer to a native Swift object.
Take-assign a weak reference variable from another when either
or both variables might not refer to a native Swift object.
\return dest
Take-initialize a weak reference variable from one that might not
refer to a native Swift object.
\return dest
Load a value from a weak reference as if by
swift_unknownObjectWeakLoadStrong, but leaving the reference in an
uninitialized state.
Aborts if the object has been deallocated.
Decrement the unowned retain count.
Decrement the unowned retain count by n.
Increment the unowned retain count.
Increment the strong retain count of an object, aborting if it has
been deallocated.
Increment the strong retain count of an object which may have been
deallocated, aborting if it has been deallocated, and decrement its
unowned reference count.
Increment the unowned retain count by n.
Performs verification that the lifetime of a stack allocated object has
ended. It aborts if the reference counts of the object indicate that the
object did escape to some other location.
Assign a new value to a weak reference.
Copy assign a weak reference.
Copy initialize a weak reference.
Destroy a weak reference.
Initialize a weak reference.
Load a value from a weak reference. If the current value is a
non-null object that has begun deallocation, returns null;
otherwise, retains the object before returning.
Take assign a weak reference.
Take initialize a weak reference.
Load a value from a weak reference as if by swift_weakLoadStrong,
but leaving the reference in an uninitialized state.
swift::warning() emits a warning from the runtime.
swift::warning() emits a warning from the runtime.