Commit ed7ab2a
committed
[Wasm][KeyPath] Resolve absolute function pointer as identity
Emit and resolve idValue of KeyPath as an absolute pointer if relative
function pointer is turned-off on Wasm target.
The existing ABI can't distinguish an idValue between function pointer
or data pointer in use-site at compile-time and also at runtime. So this
patch adds a new id resolution scheme `ResolvedAbsolute` to distinguish
them at runtime properly.1 parent ecf8a35 commit ed7ab2a
File tree
4 files changed
+32
-10
lines changed- include/swift/ABI
- lib/IRGen
- stdlib/public
- SwiftShims
- core
4 files changed
+32
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
| 218 | + | |
217 | 219 | | |
218 | 220 | | |
219 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
957 | | - | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
958 | 962 | | |
959 | 963 | | |
960 | 964 | | |
| |||
1089 | 1093 | | |
1090 | 1094 | | |
1091 | 1095 | | |
1092 | | - | |
1093 | | - | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
1094 | 1102 | | |
1095 | 1103 | | |
1096 | 1104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
| 877 | + | |
877 | 878 | | |
878 | 879 | | |
879 | 880 | | |
| |||
1108 | 1109 | | |
1109 | 1110 | | |
1110 | 1111 | | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1111 | 1115 | | |
1112 | 1116 | | |
1113 | 1117 | | |
| |||
1118 | 1122 | | |
1119 | 1123 | | |
1120 | 1124 | | |
| 1125 | + | |
| 1126 | + | |
1121 | 1127 | | |
1122 | 1128 | | |
1123 | 1129 | | |
| |||
3381 | 3387 | | |
3382 | 3388 | | |
3383 | 3389 | | |
3384 | | - | |
3385 | | - | |
3386 | | - | |
3387 | 3390 | | |
3388 | 3391 | | |
3389 | 3392 | | |
3390 | 3393 | | |
| 3394 | + | |
| 3395 | + | |
| 3396 | + | |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
3391 | 3400 | | |
3392 | 3401 | | |
3393 | 3402 | | |
3394 | 3403 | | |
3395 | 3404 | | |
3396 | | - | |
| 3405 | + | |
| 3406 | + | |
3397 | 3407 | | |
3398 | 3408 | | |
3399 | 3409 | | |
3400 | 3410 | | |
3401 | 3411 | | |
3402 | 3412 | | |
| 3413 | + | |
3403 | 3414 | | |
3404 | | - | |
| 3415 | + | |
3405 | 3416 | | |
3406 | 3417 | | |
3407 | 3418 | | |
3408 | 3419 | | |
3409 | 3420 | | |
3410 | | - | |
| 3421 | + | |
3411 | 3422 | | |
3412 | | - | |
3413 | 3423 | | |
3414 | 3424 | | |
3415 | 3425 | | |
| |||
0 commit comments