mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
- Create the value witness table as a separate global object instead of concatenating it to the metadata pattern. - Always pass the metadata to the runtime and let the runtime handle instantiating or modifying the value witness table. - Pass the right layout algorithm version to the runtime; currently this is always "Swift 5". - Create a runtime function to instantiate single-case enums. Among other things, this makes the copying of the VWT, and any modifications of it, explicit and in the runtime, which is more future-proof.
13 lines
387 B
C
13 lines
387 B
C
int _T0Bi32_N;
|
|
int _T0Bi64_N;
|
|
int _T0Bi8_N;
|
|
void _swift_getEnumCaseSinglePayload(void) {}
|
|
void _swift_getGenericMetadata(void) {}
|
|
void _swift_slowAlloc(void) {}
|
|
void _swift_slowDealloc(void) {}
|
|
void _swift_storeEnumTagSinglePayload(void) {}
|
|
void swift_allocateGenericValueMetadata(void) {}
|
|
void swift_initEnumMetadataSinglePayload(void) {}
|
|
void _swift_retain(){}
|
|
void swift_allocBox(){}
|