Kuba (Brecka) Mracek
70d1d998ab
Merge pull request #72530 from kubamracek/embedded-add-ivar-destroyers
...
[embedded] Add IVarDestroyers into class metadata, add support for throws in initializers
2024-03-27 09:12:34 -07:00
Kuba Mracek
37d9be636a
[embedded] Handle NULL IVarDestroyers, expand test
2024-03-26 21:14:21 -07:00
Kuba Mracek
b8bd832fba
[embedded] Add IVarDestroyers into class metadata, add support for throws in initializers
2024-03-26 20:52:17 -07:00
Yuta Saito
f4d3ee6a92
[embedded] Use __has_extension(swiftcc) to detect Swift calling convention
...
This change replaces the use of `__has_feature(swiftasynccc)` with
`__has_extension(swiftcc)` to detect the SwiftCC availability. The former
condition works fine for most platforms that support both SwiftCC and
SwiftAsyncCC or neither, but it fails for WebAssembly, which supports
SwiftCC but not SwiftAsyncCC.
We add `swiftcc` extension to Clang, and use it here.
2024-03-20 23:07:29 +00:00
Kuba Mracek
2c30b0a0e2
[embedded] Resolve ptrauth crashes by signing HeapObjects's isa pointers in embedded Swift
2024-01-22 16:45:07 -08:00
Kuba Mracek
df09cf16b1
[embedded] Avoid using swiftcc on targets that don't support it
2023-11-13 12:59:41 -08:00
Kuba Mracek
a46abb0cf8
[embedded] Put __ptrauth specifier at the right spot so that it parses even in C++ mode
2023-09-26 17:32:35 -07:00
Kuba Mracek
8009f45b05
[embedded] Avoid warning about redefined macro by using attributes directly
2023-09-26 16:16:13 -07:00
Kuba Mracek
b718c506da
[embedded] Fix arm64e pointer signing in embedded heap object destruction
2023-09-26 16:13:03 -07:00
Kuba Mracek
86ad378928
[embedded] Add a simple Swift runtime, written in embedded Swift
2023-09-25 19:51:19 -07:00