peachsim 0.1.2224 → 0.1.2228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/cli/bridge-flow-runner.ts +56 -3
  2. package/cli/commands/control.ts +27 -1
  3. package/cli/commands/flow.ts +26 -0
  4. package/cli/commands/package.ts +9 -2
  5. package/cli/drivers/playwright.ts +1 -0
  6. package/cli/drivers/types.ts +3 -0
  7. package/cli/internal-child.ts +4 -2
  8. package/dist-lib/agent-daemon-client.cjs +1 -1
  9. package/dist-lib/agent-events.cjs +1 -1
  10. package/dist-lib/attached-projects.cjs +1 -1
  11. package/dist-lib/auth/shared-session.cjs +1 -1
  12. package/dist-lib/backend-origin.cjs +1 -1
  13. package/dist-lib/beta.cjs +1 -1
  14. package/dist-lib/beta.mjs +1 -1
  15. package/dist-lib/bridge-constants.cjs +1 -1
  16. package/dist-lib/bridge-contract-input.cjs +1 -1
  17. package/dist-lib/bridge-contract-input.mjs +1 -1
  18. package/dist-lib/bridge-contract.cjs +1 -1
  19. package/dist-lib/bridge-contract.mjs +1 -1
  20. package/dist-lib/bundle-channel.cjs +931 -455
  21. package/dist-lib/capture-contract.cjs +1 -1
  22. package/dist-lib/capture-contract.mjs +1 -1
  23. package/dist-lib/cloud-contract.cjs +1 -1
  24. package/dist-lib/cloud-contract.mjs +1 -1
  25. package/dist-lib/cloud-test-args.cjs +1 -1
  26. package/dist-lib/cloud-test-args.mjs +1 -1
  27. package/dist-lib/cloud.cjs +1 -1
  28. package/dist-lib/cloud.mjs +1 -1
  29. package/dist-lib/config.cjs +1 -1
  30. package/dist-lib/config.mjs +1 -1
  31. package/dist-lib/detox/index.cjs +2 -2
  32. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  33. package/dist-lib/expo-swift-bundle.cjs +867 -391
  34. package/dist-lib/expo-swift-metadata.cjs +1 -1
  35. package/dist-lib/expo-swift-metadata.mjs +1 -1
  36. package/dist-lib/home-paths.cjs +1 -1
  37. package/dist-lib/host/bridge-host.cjs +926 -450
  38. package/dist-lib/host/fetch-proxy-handler.cjs +55 -12
  39. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  40. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  41. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  42. package/dist-lib/host/websocket-proxy.cjs +1 -1
  43. package/dist-lib/index.cjs +60 -16
  44. package/dist-lib/jump-to-source-babel.cjs +1 -1
  45. package/dist-lib/jump-to-source-native.cjs +1 -1
  46. package/dist-lib/kotlin-host.cjs +1 -1
  47. package/dist-lib/menu.cjs +1 -1
  48. package/dist-lib/menu.mjs +1 -1
  49. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  50. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  51. package/dist-lib/metro-production-bundle.cjs +11 -4
  52. package/dist-lib/metro-production-bundle.mjs +10 -4
  53. package/dist-lib/metro.cjs +60 -16
  54. package/dist-lib/native-app-identity-project.cjs +53 -9
  55. package/dist-lib/native-app-identity-project.mjs +84 -37
  56. package/dist-lib/native-app-identity.cjs +1 -1
  57. package/dist-lib/native-app-identity.mjs +1 -1
  58. package/dist-lib/native-firebase-metadata.cjs +1 -1
  59. package/dist-lib/native-firebase-metadata.mjs +1 -1
  60. package/dist-lib/pdfium-raster.cjs +1 -1
  61. package/dist-lib/pdfium-raster.mjs +1 -1
  62. package/dist-lib/plist.cjs +1 -1
  63. package/dist-lib/plist.mjs +1 -1
  64. package/dist-lib/profiles.cjs +1 -1
  65. package/dist-lib/public-brand.cjs +1 -1
  66. package/dist-lib/public-origins-lib-esm.json +26 -24
  67. package/dist-lib/public-origins-lib.json +66 -54
  68. package/dist-lib/react-native-host-modules.cjs +1 -1
  69. package/dist-lib/react-native-host-modules.mjs +1 -1
  70. package/dist-lib/reap-browser.cjs +1 -1
  71. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  72. package/dist-lib/sdk.cjs +1 -1
  73. package/dist-lib/sdk.mjs +1 -1
  74. package/dist-lib/skills.cjs +1049 -512
  75. package/dist-lib/swift-compile.cjs +557 -121
  76. package/dist-lib/swift-compile.mjs +693 -258
  77. package/dist-lib/swift-package.cjs +1 -1
  78. package/dist-lib/swift-package.mjs +1 -1
  79. package/dist-lib/swift-submit.cjs +1 -1
  80. package/dist-lib/swift-submit.mjs +1 -1
  81. package/dist-lib/swift-toolchain.cjs +38 -2
  82. package/dist-lib/swift.cjs +1 -1
  83. package/dist-lib/vite-swift.cjs +1726 -1209
  84. package/dist-lib/vite.cjs +55 -12
  85. package/dist-lib/worklet-executable.cjs +1 -1
  86. package/dist-lib/worklet-executable.mjs +1 -1
  87. package/dist-types/packages/peach-engine/src/bundle-parse-receipt.d.ts +17 -0
  88. package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +2 -1
  89. package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +2 -2
  90. package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -0
  91. package/dist-types/packages/peach-engine/src/engine/native-paragraph.d.ts +4 -0
  92. package/dist-types/packages/peach-engine/src/engine/node.d.ts +2 -0
  93. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +1 -1
  94. package/dist-types/packages/peach-engine/src/engine/types.d.ts +7 -0
  95. package/dist-types/packages/peach-engine/src/engine/yoga-layout.d.ts +2 -0
  96. package/dist-types/packages/peach-engine/src/metro-fingerprint.d.ts +3 -2
  97. package/dist-types/packages/peach-engine/src/preview/preview-room-contract.d.ts +6 -0
  98. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +1 -0
  99. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -3
  100. package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +0 -5
  101. package/dist-types/packages/peach-kit/src/capabilities.d.ts +2 -0
  102. package/dist-types/packages/peach-kit/src/internal.d.ts +1 -1
  103. package/dist-types/packages/peach-kit/src/ios-tint.d.ts +2 -0
  104. package/kotlin/sdk.tar.gz +0 -0
  105. package/package.json +1 -1
  106. package/runtime-companion.json +1 -1
  107. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h +0 -6
  108. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h +1 -1
  109. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h +1 -1
  110. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIControl.h +0 -26
  111. package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +27 -0
  112. package/sdk/ios/usr/include/AvailabilityInternal.h +2 -2
  113. package/sdk/ios/usr/include/ObjectiveC.apinotes +380 -7
  114. package/sdk/ios/usr/include/peach/pthread.h +1 -7
  115. package/sdk/ios/wasm/include/TargetConditionals.h +2 -3
  116. package/sdk/ios/wasm/include/__struct_timeval.h +15 -0
  117. package/sdk/ios/wasm/include/__typedef_suseconds_t.h +9 -0
  118. package/sdk/ios/wasm/include/limits.h +1 -1
  119. package/sdk/ios/wasm/include/machine/_types.h +1 -1
  120. package/sdk/ios/wasm/include/machine/limits.h +1 -1
  121. package/sdk/ios/wasm/include/machine/param.h +2 -2
  122. package/sdk/ios/wasm/include/math.h +13 -0
  123. package/sdk/ios/wasm/include/pthread.h +1 -13
  124. package/sdk/ios/wasm/include/sys/resource.h +3 -0
  125. package/sdk/ios/wasm/include/sys/socket.h +0 -10
  126. package/sdk/ios/wasm/include/sys/stat.h +5 -2
  127. package/sdk/ios/wasm/include/sys/time.h +16 -3
  128. package/sdk/ios/wasm/include/sys/types.h +4 -1
  129. package/sdk/ios/wasm/include/time.h +2 -0
  130. package/sdk/ios/wasm/storage-include/TargetConditionals.h +2 -3
  131. package/sdk/native-hashes.json +14 -14
  132. package/src/metro-production-bundle.ts +15 -2
  133. package/src/native-slices.ts +3 -2
  134. package/src/native-static-libraries.ts +23 -23
  135. package/src/native-swift-slices.ts +2 -2
  136. package/src/nitro-adapter.lock.json +288 -288
  137. package/src/nitro-compiler-digest.ts +0 -1
  138. package/src/nitro-dependencies.ts +8 -9
  139. package/src/nitro-superset.lock.json +4 -4
  140. package/src/react-native-core-build.ts +2 -2
  141. package/src/swift-compile.ts +209 -47
  142. package/src/swift-compiler-digest.ts +2 -0
  143. package/src/swift-cxx-standin.ts +1 -1
  144. package/src/swift-darwin-records.ts +4 -4
  145. package/src/swift-distribution-contract.ts +2 -2
  146. package/src/swift-distribution.lock.json +13 -12
  147. package/src/swift-guest-compile.ts +6 -5
  148. package/src/swift-guest-image-ledger.ts +5 -5
  149. package/src/swift-guest-link.ts +1 -1
  150. package/src/swift-guest-linked-spans.ts +7 -4
  151. package/src/swift-guest-manifest.ts +2 -2
  152. package/src/swift-guest-source-inputs.ts +16 -5
  153. package/src/swift-host.ts +10 -5
  154. package/src/swift-icu.ts +1 -1
  155. package/src/swift-objc-compile.ts +9 -4
  156. package/src/swift-objc-standin.ts +1 -4
  157. package/src/swift-package-manifest.ts +5 -1
  158. package/src/swift-packages.ts +2 -2
  159. package/src/swift-shared-sdk.ts +1 -1
  160. package/src/swift-standin-emit.ts +3 -16
  161. package/src/swift-standins.ts +119 -87
  162. package/src/swift-toolchain.ts +37 -1
  163. package/src/swift-uniform-type-constants.ts +1 -1
  164. package/src/swift-wasm-prune.ts +17 -12
  165. package/src/swiftGuestImageContract.ts +4 -4
  166. package/src/swiftNativePinContract.ts +1 -1
  167. package/src/swiftRuntimeProductContract.ts +1 -1
  168. package/src/turbo-runtime.lock.json +28 -28
  169. package/src/wasm-narrow-boundary.ts +296 -0
  170. package/src/wasm-optimize.ts +59 -14
  171. package/src/xcode-project.ts +6 -4
@@ -135,17 +135,390 @@ Protocols:
135
135
  Tags:
136
136
  - Name: _NSZone
137
137
  SwiftName: _NSZone
138
- Functions:
139
- - Name: sel_registerName
140
- NullabilityOfRet: N
141
- Nullability: [N]
142
- - Name: sel_getUid
143
- NullabilityOfRet: N
144
- Nullability: [N]
145
138
 
146
139
 
147
140
  # Runtime functions did not yet have nullability in Swift 3.
148
141
 
142
+ Functions:
143
+ - Name: sel_getName
144
+ Nullability: [ N ]
145
+ NullabilityOfRet: N
146
+ - Name: sel_registerName
147
+ Nullability: [ N ]
148
+ NullabilityOfRet: N
149
+ - Name: object_getClassName
150
+ Nullability: [ O ]
151
+ NullabilityOfRet: N
152
+ - Name: object_getIndexedIvars
153
+ Nullability: [ O ]
154
+ NullabilityOfRet: O
155
+ - Name: sel_isMapped
156
+ Nullability: [ N ]
157
+ - Name: sel_getUid
158
+ Nullability: [ N ]
159
+ NullabilityOfRet: N
160
+ - Name: objc_retainedObject
161
+ Nullability: [ O ]
162
+ NullabilityOfRet: O
163
+ - Name: objc_unretainedObject
164
+ Nullability: [ O ]
165
+ NullabilityOfRet: O
166
+ - Name: objc_unretainedPointer
167
+ Nullability: [ O ]
168
+ NullabilityOfRet: O
169
+ - Name: object_copy
170
+ Nullability: [ O, S ]
171
+ NullabilityOfRet: O
172
+ - Name: object_dispose
173
+ Nullability: [ O ]
174
+ NullabilityOfRet: O
175
+ - Name: object_getClass
176
+ Nullability: [ O ]
177
+ NullabilityOfRet: O
178
+ - Name: object_setClass
179
+ Nullability: [ O, N ]
180
+ NullabilityOfRet: O
181
+ - Name: object_isClass
182
+ Nullability: [ O ]
183
+ - Name: object_getIvar
184
+ Nullability: [ O, N ]
185
+ NullabilityOfRet: O
186
+ - Name: object_setIvar
187
+ Nullability: [ O, N, O ]
188
+ - Name: object_setIvarWithStrongDefault
189
+ Nullability: [ O, N, O ]
190
+ - Name: object_setInstanceVariable
191
+ Nullability: [ O, N, O ]
192
+ NullabilityOfRet: O
193
+ - Name: object_setInstanceVariableWithStrongDefault
194
+ Nullability: [ O, N, O ]
195
+ NullabilityOfRet: O
196
+ - Name: object_getInstanceVariable
197
+ Nullability: [ O, N, O ]
198
+ Parameters:
199
+ - Position: 2
200
+ Type: "void * _Nullable * _Nullable"
201
+ NullabilityOfRet: O
202
+ - Name: objc_getClass
203
+ Nullability: [ N ]
204
+ - Name: objc_getMetaClass
205
+ Nullability: [ N ]
206
+ - Name: objc_lookUpClass
207
+ Nullability: [ N ]
208
+ NullabilityOfRet: O
209
+ - Name: objc_getRequiredClass
210
+ Nullability: [ N ]
211
+ NullabilityOfRet: N
212
+ - Name: objc_getClassList
213
+ Nullability: [ O, S ]
214
+ Parameters:
215
+ - Position: 0
216
+ Type: "Class _Nonnull * _Nullable"
217
+ - Name: objc_copyClassList
218
+ Nullability: [ O ]
219
+ NullabilityOfRet: O
220
+ ResultType: "Class _Nonnull * _Nullable"
221
+ - Name: objc_enumerateClasses
222
+ Nullability: [ O, O, O, O, S ]
223
+ Parameters:
224
+ - Position: 4
225
+ Type: "void (^)(Class _Nonnull, BOOL * _Nonnull)"
226
+ NoEscape: true
227
+ - Name: class_getName
228
+ Nullability: [ O ]
229
+ NullabilityOfRet: N
230
+ - Name: class_isMetaClass
231
+ Nullability: [ O ]
232
+ - Name: class_getSuperclass
233
+ Nullability: [ O ]
234
+ NullabilityOfRet: O
235
+ - Name: class_setSuperclass
236
+ Nullability: [ N, N ]
237
+ NullabilityOfRet: N
238
+ - Name: class_getVersion
239
+ Nullability: [ O ]
240
+ - Name: class_setVersion
241
+ Nullability: [ O, S ]
242
+ - Name: class_getInstanceSize
243
+ Nullability: [ O ]
244
+ - Name: class_getInstanceVariable
245
+ Nullability: [ O, N ]
246
+ NullabilityOfRet: O
247
+ - Name: class_getClassVariable
248
+ Nullability: [ O, N ]
249
+ NullabilityOfRet: O
250
+ - Name: class_copyIvarList
251
+ Nullability: [ O, O ]
252
+ NullabilityOfRet: O
253
+ ResultType: "Ivar _Nonnull * _Nullable"
254
+ - Name: class_getInstanceMethod
255
+ Nullability: [ O, N ]
256
+ NullabilityOfRet: O
257
+ - Name: class_getClassMethod
258
+ Nullability: [ O, N ]
259
+ NullabilityOfRet: O
260
+ - Name: class_getMethodImplementation
261
+ Nullability: [ O, N ]
262
+ NullabilityOfRet: O
263
+ - Name: class_getMethodImplementation_stret
264
+ Nullability: [ O, N ]
265
+ NullabilityOfRet: O
266
+ - Name: class_respondsToSelector
267
+ Nullability: [ O, N ]
268
+ - Name: class_copyMethodList
269
+ Nullability: [ O, O ]
270
+ NullabilityOfRet: O
271
+ ResultType: "Method _Nonnull * _Nullable"
272
+ - Name: class_conformsToProtocol
273
+ Nullability: [ O, O ]
274
+ - Name: class_copyProtocolList
275
+ Nullability: [ O, O ]
276
+ NullabilityOfRet: O
277
+ ResultType: "Protocol * _Nonnull * _Nullable"
278
+ - Name: class_getProperty
279
+ Nullability: [ O, N ]
280
+ NullabilityOfRet: O
281
+ - Name: class_copyPropertyList
282
+ Nullability: [ O, O ]
283
+ NullabilityOfRet: O
284
+ ResultType: "objc_property_t _Nonnull * _Nullable"
285
+ - Name: class_getIvarLayout
286
+ Nullability: [ O ]
287
+ NullabilityOfRet: O
288
+ - Name: class_getWeakIvarLayout
289
+ Nullability: [ O ]
290
+ NullabilityOfRet: O
291
+ - Name: class_addMethod
292
+ Nullability: [ O, N, N, O ]
293
+ - Name: class_replaceMethod
294
+ Nullability: [ O, N, N, O ]
295
+ NullabilityOfRet: O
296
+ - Name: class_addIvar
297
+ Nullability: [ O, N, S, S, O ]
298
+ - Name: class_addProtocol
299
+ Nullability: [ O, N ]
300
+ - Name: class_addProperty
301
+ Nullability: [ O, N, O, S ]
302
+ - Name: class_replaceProperty
303
+ Nullability: [ O, N, O, S ]
304
+ - Name: class_setIvarLayout
305
+ Nullability: [ O, O ]
306
+ - Name: class_setWeakIvarLayout
307
+ Nullability: [ O, O ]
308
+ - Name: objc_getFutureClass
309
+ Nullability: [ N ]
310
+ NullabilityOfRet: N
311
+ - Name: class_createInstance
312
+ Nullability: [ O, S ]
313
+ NullabilityOfRet: O
314
+ - Name: objc_constructInstance
315
+ Nullability: [ O, O ]
316
+ NullabilityOfRet: O
317
+ - Name: objc_destructInstance
318
+ Nullability: [ O ]
319
+ NullabilityOfRet: O
320
+ - Name: objc_allocateClassPair
321
+ Nullability: [ O, N, S ]
322
+ NullabilityOfRet: O
323
+ - Name: objc_registerClassPair
324
+ Nullability: [ N ]
325
+ - Name: objc_duplicateClass
326
+ Nullability: [ N, N, S ]
327
+ NullabilityOfRet: N
328
+ - Name: objc_disposeClassPair
329
+ Nullability: [ N ]
330
+ - Name: method_getName
331
+ Nullability: [ N ]
332
+ NullabilityOfRet: N
333
+ - Name: method_getImplementation
334
+ Nullability: [ N ]
335
+ NullabilityOfRet: N
336
+ - Name: method_getTypeEncoding
337
+ Nullability: [ N ]
338
+ NullabilityOfRet: O
339
+ - Name: method_getNumberOfArguments
340
+ Nullability: [ N ]
341
+ - Name: method_copyReturnType
342
+ Nullability: [ N ]
343
+ NullabilityOfRet: N
344
+ - Name: method_copyArgumentType
345
+ Nullability: [ N, S ]
346
+ NullabilityOfRet: O
347
+ - Name: method_getReturnType
348
+ Nullability: [ N, N, S ]
349
+ - Name: method_getArgumentType
350
+ Nullability: [ N, S, O, S ]
351
+ - Name: method_getDescription
352
+ Nullability: [ N ]
353
+ NullabilityOfRet: N
354
+ - Name: method_setImplementation
355
+ Nullability: [ N, N ]
356
+ NullabilityOfRet: N
357
+ - Name: method_exchangeImplementations
358
+ Nullability: [ N, N ]
359
+ - Name: ivar_getName
360
+ Nullability: [ N ]
361
+ NullabilityOfRet: O
362
+ - Name: ivar_getTypeEncoding
363
+ Nullability: [ N ]
364
+ NullabilityOfRet: O
365
+ - Name: ivar_getOffset
366
+ Nullability: [ N ]
367
+ - Name: property_getName
368
+ Nullability: [ N ]
369
+ NullabilityOfRet: N
370
+ - Name: property_getAttributes
371
+ Nullability: [ N ]
372
+ NullabilityOfRet: O
373
+ - Name: property_copyAttributeList
374
+ Nullability: [ N, O ]
375
+ NullabilityOfRet: O
376
+ - Name: property_copyAttributeValue
377
+ Nullability: [ N, N ]
378
+ NullabilityOfRet: O
379
+ - Name: objc_getProtocol
380
+ Nullability: [ N ]
381
+ NullabilityOfRet: O
382
+ - Name: objc_copyProtocolList
383
+ Nullability: [ O ]
384
+ NullabilityOfRet: O
385
+ ResultType: "Protocol * _Nonnull * _Nullable"
386
+ - Name: protocol_conformsToProtocol
387
+ Nullability: [ O, O ]
388
+ - Name: protocol_isEqual
389
+ Nullability: [ O, O ]
390
+ - Name: protocol_getName
391
+ Nullability: [ N ]
392
+ NullabilityOfRet: N
393
+ - Name: protocol_getMethodDescription
394
+ Nullability: [ N, N, S, S ]
395
+ - Name: protocol_copyMethodDescriptionList
396
+ Nullability: [ N, S, S, O ]
397
+ NullabilityOfRet: O
398
+ - Name: protocol_getProperty
399
+ Nullability: [ N, N, S, S ]
400
+ NullabilityOfRet: O
401
+ - Name: protocol_copyPropertyList
402
+ Nullability: [ N, O ]
403
+ NullabilityOfRet: O
404
+ ResultType: "objc_property_t _Nonnull * _Nullable"
405
+ - Name: protocol_copyPropertyList2
406
+ Nullability: [ N, O, S, S ]
407
+ NullabilityOfRet: O
408
+ ResultType: "objc_property_t _Nonnull * _Nullable"
409
+ - Name: protocol_copyProtocolList
410
+ Nullability: [ N, O ]
411
+ NullabilityOfRet: O
412
+ ResultType: "Protocol * _Nonnull * _Nullable"
413
+ - Name: objc_allocateProtocol
414
+ Nullability: [ N ]
415
+ NullabilityOfRet: O
416
+ - Name: objc_registerProtocol
417
+ Nullability: [ N ]
418
+ - Name: protocol_addMethodDescription
419
+ Nullability: [ N, N, O, S, S ]
420
+ - Name: protocol_addProtocol
421
+ Nullability: [ N, N ]
422
+ - Name: protocol_addProperty
423
+ Nullability: [ N, N, O, S, S, S ]
424
+ - Name: objc_copyImageNames
425
+ Nullability: [ O ]
426
+ NullabilityOfRet: N
427
+ ResultType: "const char * _Nonnull * _Nonnull"
428
+ - Name: objc_copyImageHeaders
429
+ Nullability: [ O ]
430
+ NullabilityOfRet: N
431
+ ResultType: "const struct mach_header * _Nonnull * _Nonnull"
432
+ - Name: class_getImageName
433
+ Nullability: [ O ]
434
+ NullabilityOfRet: O
435
+ - Name: objc_copyClassNamesForImage
436
+ Nullability: [ N, O ]
437
+ NullabilityOfRet: O
438
+ ResultType: "const char * _Nonnull * _Nullable"
439
+ - Name: sel_isEqual
440
+ Nullability: [ N, N ]
441
+ - Name: objc_enumerationMutation
442
+ Nullability: [ N ]
443
+ - Name: objc_setEnumerationMutationHandler
444
+ Nullability: [ S ]
445
+ Parameters:
446
+ - Position: 0
447
+ Type: "void ( * _Nullable)(id _Nonnull)"
448
+ - Name: objc_setForwardHandler
449
+ Nullability: [ N, N ]
450
+ - Name: imp_implementationWithBlock
451
+ Nullability: [ N ]
452
+ NullabilityOfRet: N
453
+ - Name: imp_getBlock
454
+ Nullability: [ N ]
455
+ NullabilityOfRet: O
456
+ - Name: imp_removeBlock
457
+ Nullability: [ N ]
458
+ - Name: objc_loadWeak
459
+ Nullability: [ N ]
460
+ Parameters:
461
+ - Position: 0
462
+ Type: "id _Nullable * _Nonnull"
463
+ NullabilityOfRet: O
464
+ - Name: objc_storeWeak
465
+ Nullability: [ N, O ]
466
+ Parameters:
467
+ - Position: 0
468
+ Type: "id _Nullable * _Nonnull"
469
+ NullabilityOfRet: O
470
+ - Name: objc_setAssociatedObject
471
+ Nullability: [ N, N, O, S ]
472
+ - Name: objc_getAssociatedObject
473
+ Nullability: [ N, N ]
474
+ NullabilityOfRet: O
475
+ - Name: objc_removeAssociatedObjects
476
+ Nullability: [ N ]
477
+ - Name: objc_setHook_getImageName
478
+ Nullability: [ N, N ]
479
+ Parameters:
480
+ - Position: 1
481
+ Type: "objc_hook_getImageName _Nullable * _Nonnull"
482
+ - Name: objc_setHook_getClass
483
+ Nullability: [ N, N ]
484
+ Parameters:
485
+ - Position: 1
486
+ Type: "objc_hook_getClass _Nullable * _Nonnull"
487
+ - Name: objc_addLoadImageFunc
488
+ Nullability: [ N ]
489
+ - Name: objc_setHook_lazyClassNamer
490
+ Nullability: [ N, N ]
491
+ Parameters:
492
+ - Position: 1
493
+ Type: "objc_hook_lazyClassNamer _Nonnull * _Nonnull"
494
+ - Name: _objc_realizeClassFromSwift
495
+ Nullability: [ O, O ]
496
+ NullabilityOfRet: O
497
+ - Name: _objc_flush_caches
498
+ Nullability: [ O ]
499
+ - Name: class_lookupMethod
500
+ Nullability: [ O, N ]
501
+ NullabilityOfRet: O
502
+ - Name: class_respondsToMethod
503
+ Nullability: [ O, N ]
504
+ - Name: object_copyFromZone
505
+ Nullability: [ O, S, S ]
506
+ NullabilityOfRet: O
507
+ - Name: class_createInstanceFromZone
508
+ Nullability: [ O, S, S ]
509
+ NullabilityOfRet: O
510
+ - Name: objc_msgSend
511
+ - Name: objc_msgSendSuper
512
+ - Name: objc_msgSend_stret
513
+ - Name: objc_msgSendSuper_stret
514
+ - Name: method_invoke
515
+ - Name: method_invoke_stret
516
+ - Name: _objc_msgForward
517
+ - Name: _objc_msgForward_stret
518
+ - Name: objc_sync_enter
519
+ Nullability: [ N ]
520
+ - Name: objc_sync_exit
521
+ Nullability: [ N ]
149
522
  SwiftVersions:
150
523
  - Version: 3
151
524
  Functions:
@@ -1,19 +1,13 @@
1
1
  #pragma once
2
2
  #include <stddef.h>
3
3
  #include <mach/mach_types.h>
4
- #if defined(__wasm__) && defined(__cplusplus)
5
- #define __PEACH_PTHREAD_NULLABLE
6
- #else
7
- #define __PEACH_PTHREAD_NULLABLE _Nullable
8
- #endif
9
4
  #ifdef __cplusplus
10
5
  extern "C" {
11
6
  #endif
12
7
  mach_port_t pthread_mach_thread_np(pthread_t) __attribute__((availability(ios,introduced=2.0)));
13
- pthread_t __PEACH_PTHREAD_NULLABLE pthread_from_mach_thread_np(mach_port_t) __attribute__((availability(ios,introduced=2.0)));
8
+ pthread_t _Nullable pthread_from_mach_thread_np(mach_port_t) __attribute__((availability(ios,introduced=2.0)));
14
9
  int pthread_getname_np(pthread_t, char *, size_t) __attribute__((availability(ios,introduced=3.2)));
15
10
  int pthread_setname_np(const char *) __attribute__((availability(ios,introduced=3.2)));
16
11
  #ifdef __cplusplus
17
12
  }
18
13
  #endif
19
- #undef __PEACH_PTHREAD_NULLABLE
@@ -359,9 +359,8 @@
359
359
  #define TARGET_CPU_ARM 1
360
360
  #elif defined(__arm64__)
361
361
  #define TARGET_CPU_ARM64 1
362
- #elif defined(__wasm32__)
363
- // arm64's selection at 32-bit pointers, as arm64_32 has it; the
364
- // machine headers take arm's selection too.
362
+ #elif defined(__wasm__)
363
+ // arm64's selection; the machine headers take arm's selection too.
365
364
  #define TARGET_CPU_ARM64 1
366
365
  #else
367
366
 
@@ -0,0 +1,15 @@
1
+ #pragma once
2
+ #include <__typedef_suseconds_t.h>
3
+ #define timeval __peach_wasi_timeval
4
+ #define suseconds_t __peach_wasi_suseconds_t
5
+ #include_next <__struct_timeval.h>
6
+ #undef suseconds_t
7
+ #undef timeval
8
+ // bits/alltypes.h reaches this from stdint, below the native timeval module.
9
+ #ifndef _STRUCT_TIMEVAL
10
+ #define _STRUCT_TIMEVAL struct timeval
11
+ _STRUCT_TIMEVAL {
12
+ time_t tv_sec;
13
+ suseconds_t tv_usec;
14
+ };
15
+ #endif
@@ -0,0 +1,9 @@
1
+ #pragma once
2
+ #define suseconds_t __peach_wasi_suseconds_t
3
+ #include_next <__typedef_suseconds_t.h>
4
+ #undef suseconds_t
5
+ #ifndef _SUSECONDS_T
6
+ #define _SUSECONDS_T
7
+ typedef int suseconds_t;
8
+ #endif
9
+ #define __DEFINED_suseconds_t
@@ -1,6 +1,6 @@
1
1
  #pragma once
2
2
  // darwin's limits.h ahead of the installed libc's. limits.h picks the
3
- // minimum thread stack by architecture; wasm32 takes arm's, as the machine
3
+ // minimum thread stack by architecture; wasm64 takes arm's, as the machine
4
4
  // headers take arm's selection.
5
5
  #include "../../usr/include/limits.h"
6
6
  #ifdef PTHREAD_STACK_MIN
@@ -32,7 +32,7 @@
32
32
  #include "i386/_types.h"
33
33
  #elif defined (__arm__) || defined (__arm64__)
34
34
  #include "arm/_types.h"
35
- #elif defined (__wasm32__)
35
+ #elif defined (__wasm__)
36
36
  // arm/_types.h's selection, except the names the installed libc also defines
37
37
  // through time_t, clock_t and mbstate_t, which keep its storage: the installed
38
38
  // headers and calls carry them.
@@ -7,7 +7,7 @@
7
7
 
8
8
  #if defined (__arm__) || defined (__arm64__)
9
9
  #include <arm/limits.h>
10
- #elif defined (__wasm32__)
10
+ #elif defined (__wasm__)
11
11
  // arm/limits.h's selection, with arm/_limits.h's clock tick in place of its
12
12
  // include. a modules build on ios takes the integer limits from clang's
13
13
  // limits.h, which includes darwin's; this view finds darwin's ahead of clang's,
@@ -35,9 +35,9 @@
35
35
  #include <i386/param.h>
36
36
  #elif defined (__arm__) || defined (__arm64__)
37
37
  #include <arm/param.h>
38
- #elif defined (__wasm32__)
38
+ #elif defined (__wasm__)
39
39
  // arm/param.h's selection, with arm/_param.h's alignment macros in place of
40
- // its include, sized by machine/_types.h's wasm32 branch.
40
+ // its include, sized by machine/_types.h's wasm branch.
41
41
 
42
42
  #include <machine/_types.h>
43
43
 
@@ -2,6 +2,19 @@
2
2
  #include_next <math.h>
3
3
 
4
4
  #ifdef __cplusplus
5
+ // libc++'s std_core imports these before its math wrapper can undefine them.
6
+ #undef fpclassify
7
+ #undef signbit
8
+ #undef isfinite
9
+ #undef isinf
10
+ #undef isnan
11
+ #undef isnormal
12
+ #undef isgreater
13
+ #undef isgreaterequal
14
+ #undef isless
15
+ #undef islessequal
16
+ #undef islessgreater
17
+ #undef isunordered
5
18
  extern "C" {
6
19
  #endif
7
20
  float __cospif(float);
@@ -43,8 +43,7 @@ int pthread_is_threaded_np(void);
43
43
  int pthread_main_np(void);
44
44
  size_t pthread_get_stacksize_np(pthread_t);
45
45
  void *pthread_get_stackaddr_np(pthread_t);
46
- // the installed libc's pthread_t is an integer, so it takes no nullability.
47
- int pthread_threadid_np(pthread_t, __uint64_t * _Nullable);
46
+ int pthread_threadid_np(pthread_t _Nullable, __uint64_t * _Nullable);
48
47
  struct __darwin_pthread_handler_rec **__peach_darwin_cleanup_stack(void);
49
48
  int pthread_cancel(pthread_t) __asm__("__peach_darwin_pthread_cancel");
50
49
  void pthread_exit(void * _Nullable) __attribute__((noreturn)) __asm__("__peach_darwin_pthread_exit");
@@ -66,17 +65,6 @@ int sched_yield(void);
66
65
  static inline void pthread_yield_np(void) { sched_yield(); }
67
66
  __END_DECLS
68
67
 
69
- #ifdef __cplusplus
70
- extern "C++" {
71
- // a native null thread names the caller; wasi stores its pthread_t as an integer.
72
- // keep the C overload preferred for integer zero.
73
- template <class = void>
74
- inline int pthread_threadid_np(decltype(nullptr), __uint64_t *id) {
75
- return pthread_threadid_np(pthread_t{}, id);
76
- }
77
- }
78
- #endif
79
-
80
68
  #define pthread_cleanup_push(func, val) \
81
69
  { \
82
70
  struct __darwin_pthread_handler_rec __handler; \
@@ -4,11 +4,14 @@
4
4
  // getrlimit and setrlimit bind to the descriptor table's darwin provider.
5
5
  // RLIMIT_STACK reports the executable's linker-owned stack bounds; setting
6
6
  // that limit remains unsupported. RLIMIT_NOFILE owns the descriptor limits.
7
+ #include <sys/time.h>
8
+ #define timeval __peach_wasi_timeval
7
9
  #define rusage __peach_wasi_rusage
8
10
  #define getrusage __peach_wasi_getrusage
9
11
  #include_next <sys/resource.h>
10
12
  #undef rusage
11
13
  #undef getrusage
14
+ #undef timeval
12
15
  #include <sys/cdefs.h>
13
16
  #include <stdint.h>
14
17
 
@@ -53,16 +53,6 @@
53
53
  #define __wasilibc___struct_sockaddr_h
54
54
  #define __wasilibc___struct_sockaddr_storage_h
55
55
 
56
- // the installed wasi header supplies this gnu message grouping to wasm
57
- // consumers. retain it around darwin's message record without importing
58
- // wasi's socket numbers or socket entry points.
59
- #ifdef _GNU_SOURCE
60
- struct mmsghdr {
61
- struct msghdr msg_hdr;
62
- unsigned int msg_len;
63
- };
64
- #endif
65
-
66
56
  __BEGIN_DECLS
67
57
  int accept(int, struct sockaddr *__restrict, socklen_t *__restrict) __asm__("__peach_darwin_accept");
68
58
  int bind(int, const struct sockaddr *, socklen_t) __asm__("__peach_darwin_bind");
@@ -1,13 +1,16 @@
1
1
  #pragma once
2
2
  // darwin's 64-bit-inode stat record, as the ios sdk orders and names it over
3
- // the installed libc's storage types, except darwin's device number, mode and
4
- // link count, which size the record. the installed libc's record orders its
3
+ // the installed libc's storage types, except darwin's device number, block
4
+ // size, mode and link count. the installed libc's record orders its
5
5
  // fields differently and has no birth time, flags or generation, so darwin's
6
6
  // stat calls bind to the darwin provider, which fills darwin's record. the
7
7
  // installed libc's declarations are renamed out of the way.
8
8
  #include <sys/_types/_dev_t.h>
9
9
  #define __DEFINED_dev_t
10
10
  #define __wasilibc___typedef_dev_t_h
11
+ #include <sys/_types/_blksize_t.h>
12
+ #define __DEFINED_blksize_t
13
+ #define __wasilibc___typedef_blksize_t_h
11
14
  #include <sys/_types/_mode_t.h>
12
15
  #include <sys/_types/_nlink_t.h>
13
16
  #define __DEFINED_nlink_t
@@ -1,10 +1,23 @@
1
1
  #pragma once
2
- // the installed libc compiles futimes out; darwin declares it, and the darwin
3
- // provider answers it over futimens.
2
+ #include <__struct_timeval.h>
3
+ #include <sys/select.h>
4
+ #define timeval __peach_wasi_timeval
5
+ #define gettimeofday __peach_wasi_gettimeofday
6
+ #define utimes __peach_wasi_utimes
7
+ #define futimesat __peach_wasi_futimesat
4
8
  #include_next <sys/time.h>
9
+ #undef futimesat
10
+ #undef utimes
11
+ #undef gettimeofday
12
+ #undef timeval
5
13
  #include <sys/cdefs.h>
6
14
  __BEGIN_DECLS
15
+ int gettimeofday(struct timeval *__restrict, void *__restrict) __asm__("__peach_darwin_gettimeofday");
16
+ int utimes(const char *, const struct timeval [2]) __asm__("__peach_darwin_utimes");
7
17
  #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
8
- int futimes(int, const struct timeval *);
18
+ int futimes(int, const struct timeval *) __asm__("__peach_darwin_futimes");
19
+ #endif
20
+ #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
21
+ int futimesat(int, const char *, const struct timeval [2]) __asm__("__peach_darwin_futimesat");
9
22
  #endif
10
23
  __END_DECLS
@@ -1,9 +1,12 @@
1
1
  #pragma once
2
- // darwin's 32-bit device number and 16-bit mode and link count; the
2
+ // darwin's 32-bit device and block sizes and 16-bit mode and link count; the
3
3
  // installed libc then skips its own.
4
4
  #include <sys/_types/_dev_t.h>
5
5
  #define __DEFINED_dev_t
6
6
  #define __wasilibc___typedef_dev_t_h
7
+ #include <sys/_types/_blksize_t.h>
8
+ #define __DEFINED_blksize_t
9
+ #define __wasilibc___typedef_blksize_t_h
7
10
  #include <sys/_types/_mode_t.h>
8
11
  #include <sys/_types/_nlink_t.h>
9
12
  #define __DEFINED_nlink_t
@@ -2,7 +2,9 @@
2
2
  // darwin's cancellation points bind to the darwin provider, which acts on a
3
3
  // pending cancel first. the installed libc has no time zone tables and leaves
4
4
  // tzset undeclared; darwin declares it.
5
+ #define clock_nanosleep __peach_wasi_clock_nanosleep
5
6
  #include_next <time.h>
7
+ #undef clock_nanosleep
6
8
  #include <sys/cdefs.h>
7
9
  #undef CLOCK_REALTIME
8
10
  #undef CLOCK_MONOTONIC
@@ -359,9 +359,8 @@
359
359
  #define TARGET_CPU_ARM 1
360
360
  #elif defined(__arm64__)
361
361
  #define TARGET_CPU_ARM64 1
362
- #elif defined(__wasm32__)
363
- // arm64's selection at 32-bit pointers, as arm64_32 has it; the
364
- // machine headers take arm's selection too.
362
+ #elif defined(__wasm__)
363
+ // arm64's selection; the machine headers take arm's selection too.
365
364
  #define TARGET_CPU_ARM64 1
366
365
  #else
367
366