@triniwiz/nativescript-masonkit 1.0.0-alpha.8 → 1.0.0-beta.0

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 (397) hide show
  1. package/button/index.android.d.ts +13 -0
  2. package/button/index.android.js +56 -0
  3. package/button/index.android.js.map +1 -0
  4. package/button/index.ios.d.ts +21 -0
  5. package/button/index.ios.js +216 -0
  6. package/button/index.ios.js.map +1 -0
  7. package/common.d.ts +78 -33
  8. package/common.js +1121 -251
  9. package/common.js.map +1 -1
  10. package/img/index.android.d.ts +10 -0
  11. package/img/index.android.js +40 -0
  12. package/img/index.android.js.map +1 -0
  13. package/img/index.ios.d.ts +13 -0
  14. package/img/index.ios.js +102 -0
  15. package/img/index.ios.js.map +1 -0
  16. package/index.android.d.ts +6 -34
  17. package/index.android.js +6 -139
  18. package/index.android.js.map +1 -1
  19. package/index.d.ts +88 -60
  20. package/index.ios.d.ts +6 -48
  21. package/index.ios.js +6 -355
  22. package/index.ios.js.map +1 -1
  23. package/package.json +5 -2
  24. package/platforms/android/include.gradle +5 -1
  25. package/platforms/android/masonkit-release.aar +0 -0
  26. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +794 -284
  27. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason.h +0 -5
  28. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/NSObject+MasonElement_Defaults.h +100 -0
  29. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +118 -93
  30. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
  31. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  32. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  33. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +58079 -23135
  34. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +1234 -255
  35. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  36. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +1234 -255
  37. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  38. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4252 -1932
  39. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +1588 -568
  40. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason.h +0 -5
  41. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/NSObject+MasonElement_Defaults.h +100 -0
  42. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +118 -93
  43. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
  44. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  45. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  46. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  47. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +58076 -23132
  48. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1211 -232
  49. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  50. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1211 -232
  51. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +58076 -23132
  52. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1211 -232
  53. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  54. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1211 -232
  55. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +31 -31
  56. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  57. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4246 -1932
  58. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +4124 -1883
  59. package/scroll/index.android.d.ts +12 -0
  60. package/scroll/index.android.js +50 -0
  61. package/scroll/index.android.js.map +1 -0
  62. package/scroll/index.ios.d.ts +14 -0
  63. package/scroll/index.ios.js +120 -0
  64. package/scroll/index.ios.js.map +1 -0
  65. package/style.d.ts +110 -53
  66. package/style.js +1176 -110
  67. package/style.js.map +1 -1
  68. package/text/index.android.d.ts +30 -0
  69. package/text/index.android.js +124 -0
  70. package/text/index.android.js.map +1 -0
  71. package/text/index.ios.d.ts +38 -0
  72. package/text/index.ios.js +251 -0
  73. package/text/index.ios.js.map +1 -0
  74. package/tree/index.android.d.ts +28 -0
  75. package/tree/index.android.js +77 -0
  76. package/tree/index.android.js.map +1 -0
  77. package/tree/index.ios.d.ts +29 -0
  78. package/tree/index.ios.js +76 -0
  79. package/tree/index.ios.js.map +1 -0
  80. package/utils/index.android.d.ts +187 -0
  81. package/utils/index.android.js +514 -0
  82. package/utils/index.android.js.map +1 -0
  83. package/utils/index.ios.d.ts +198 -0
  84. package/utils/index.ios.js +710 -0
  85. package/utils/index.ios.js.map +1 -0
  86. package/view/index.android.d.ts +12 -0
  87. package/view/index.android.js +50 -0
  88. package/view/index.android.js.map +1 -0
  89. package/view/index.ios.d.ts +16 -0
  90. package/view/index.ios.js +124 -0
  91. package/view/index.ios.js.map +1 -0
  92. package/web.d.ts +55 -0
  93. package/web.js +189 -0
  94. package/web.js.map +1 -0
  95. package/helpers.d.ts +0 -255
  96. package/helpers.js +0 -1318
  97. package/helpers.js.map +0 -1
  98. package/node.d.ts +0 -2
  99. package/node.js +0 -3
  100. package/node.js.map +0 -1
  101. package/platforms/ios/Podfile +0 -1
  102. package/platforms/ios/build.xcconfig +0 -5
  103. package/platforms/ios/prebuild.sh +0 -101
  104. package/platforms/new_native_src/cpp/Caches.cpp +0 -36
  105. package/platforms/new_native_src/cpp/Caches.h +0 -42
  106. package/platforms/new_native_src/cpp/Common.h +0 -34
  107. package/platforms/new_native_src/cpp/ConcurrentMap.h +0 -57
  108. package/platforms/new_native_src/cpp/Helpers.cpp +0 -101
  109. package/platforms/new_native_src/cpp/Helpers.h +0 -364
  110. package/platforms/new_native_src/cpp/MasonImpl.cpp +0 -68
  111. package/platforms/new_native_src/cpp/MasonImpl.h +0 -40
  112. package/platforms/new_native_src/cpp/MasonNodeImpl.cpp +0 -89
  113. package/platforms/new_native_src/cpp/MasonNodeImpl.h +0 -47
  114. package/platforms/new_native_src/cpp/MasonStyleImpl.cpp +0 -2181
  115. package/platforms/new_native_src/cpp/MasonStyleImpl.h +0 -420
  116. package/platforms/new_native_src/cpp/include/mason_native.h +0 -972
  117. package/platforms/new_native_src/cpp/include/robin_hood.h +0 -2544
  118. package/src-native/pods/Headers/include/APIDesign.md +0 -72
  119. package/src-native/pods/Headers/include/DEPS +0 -10
  120. package/src-native/pods/Headers/include/DIR_METADATA +0 -11
  121. package/src-native/pods/Headers/include/OWNERS +0 -23
  122. package/src-native/pods/Headers/include/cppgc/DEPS +0 -8
  123. package/src-native/pods/Headers/include/cppgc/OWNERS +0 -2
  124. package/src-native/pods/Headers/include/cppgc/README.md +0 -133
  125. package/src-native/pods/Headers/include/cppgc/allocation.h +0 -310
  126. package/src-native/pods/Headers/include/cppgc/common.h +0 -29
  127. package/src-native/pods/Headers/include/cppgc/cross-thread-persistent.h +0 -465
  128. package/src-native/pods/Headers/include/cppgc/custom-space.h +0 -97
  129. package/src-native/pods/Headers/include/cppgc/default-platform.h +0 -67
  130. package/src-native/pods/Headers/include/cppgc/ephemeron-pair.h +0 -30
  131. package/src-native/pods/Headers/include/cppgc/explicit-management.h +0 -100
  132. package/src-native/pods/Headers/include/cppgc/garbage-collected.h +0 -106
  133. package/src-native/pods/Headers/include/cppgc/heap-consistency.h +0 -266
  134. package/src-native/pods/Headers/include/cppgc/heap-state.h +0 -82
  135. package/src-native/pods/Headers/include/cppgc/heap-statistics.h +0 -120
  136. package/src-native/pods/Headers/include/cppgc/heap.h +0 -206
  137. package/src-native/pods/Headers/include/cppgc/internal/api-constants.h +0 -55
  138. package/src-native/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -48
  139. package/src-native/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -79
  140. package/src-native/pods/Headers/include/cppgc/internal/compiler-specific.h +0 -38
  141. package/src-native/pods/Headers/include/cppgc/internal/finalizer-trait.h +0 -93
  142. package/src-native/pods/Headers/include/cppgc/internal/gc-info.h +0 -156
  143. package/src-native/pods/Headers/include/cppgc/internal/logging.h +0 -50
  144. package/src-native/pods/Headers/include/cppgc/internal/name-trait.h +0 -122
  145. package/src-native/pods/Headers/include/cppgc/internal/persistent-node.h +0 -216
  146. package/src-native/pods/Headers/include/cppgc/internal/pointer-policies.h +0 -186
  147. package/src-native/pods/Headers/include/cppgc/internal/write-barrier.h +0 -435
  148. package/src-native/pods/Headers/include/cppgc/liveness-broker.h +0 -77
  149. package/src-native/pods/Headers/include/cppgc/macros.h +0 -26
  150. package/src-native/pods/Headers/include/cppgc/member.h +0 -291
  151. package/src-native/pods/Headers/include/cppgc/name-provider.h +0 -65
  152. package/src-native/pods/Headers/include/cppgc/object-size-trait.h +0 -58
  153. package/src-native/pods/Headers/include/cppgc/persistent.h +0 -370
  154. package/src-native/pods/Headers/include/cppgc/platform.h +0 -156
  155. package/src-native/pods/Headers/include/cppgc/prefinalizer.h +0 -75
  156. package/src-native/pods/Headers/include/cppgc/process-heap-statistics.h +0 -36
  157. package/src-native/pods/Headers/include/cppgc/sentinel-pointer.h +0 -32
  158. package/src-native/pods/Headers/include/cppgc/source-location.h +0 -92
  159. package/src-native/pods/Headers/include/cppgc/testing.h +0 -106
  160. package/src-native/pods/Headers/include/cppgc/trace-trait.h +0 -116
  161. package/src-native/pods/Headers/include/cppgc/type-traits.h +0 -240
  162. package/src-native/pods/Headers/include/cppgc/visitor.h +0 -379
  163. package/src-native/pods/Headers/include/js_protocol-1.2.json +0 -936
  164. package/src-native/pods/Headers/include/js_protocol-1.3.json +0 -1112
  165. package/src-native/pods/Headers/include/js_protocol.pdl +0 -1709
  166. package/src-native/pods/Headers/include/libffi/arm64/ffi.h +0 -524
  167. package/src-native/pods/Headers/include/libffi/arm64/ffitarget.h +0 -92
  168. package/src-native/pods/Headers/include/libffi/x86_64/ffi.h +0 -524
  169. package/src-native/pods/Headers/include/libffi/x86_64/ffitarget.h +0 -147
  170. package/src-native/pods/Headers/include/libffi.h +0 -12
  171. package/src-native/pods/Headers/include/libplatform/DEPS +0 -9
  172. package/src-native/pods/Headers/include/libplatform/libplatform-export.h +0 -29
  173. package/src-native/pods/Headers/include/libplatform/libplatform.h +0 -106
  174. package/src-native/pods/Headers/include/libplatform/v8-tracing.h +0 -333
  175. package/src-native/pods/Headers/include/v8-array-buffer.h +0 -433
  176. package/src-native/pods/Headers/include/v8-callbacks.h +0 -397
  177. package/src-native/pods/Headers/include/v8-container.h +0 -129
  178. package/src-native/pods/Headers/include/v8-context.h +0 -407
  179. package/src-native/pods/Headers/include/v8-cppgc.h +0 -215
  180. package/src-native/pods/Headers/include/v8-data.h +0 -80
  181. package/src-native/pods/Headers/include/v8-date.h +0 -43
  182. package/src-native/pods/Headers/include/v8-debug.h +0 -168
  183. package/src-native/pods/Headers/include/v8-embedder-heap.h +0 -218
  184. package/src-native/pods/Headers/include/v8-embedder-state-scope.h +0 -51
  185. package/src-native/pods/Headers/include/v8-exception.h +0 -217
  186. package/src-native/pods/Headers/include/v8-extension.h +0 -62
  187. package/src-native/pods/Headers/include/v8-external.h +0 -37
  188. package/src-native/pods/Headers/include/v8-fast-api-calls.h +0 -939
  189. package/src-native/pods/Headers/include/v8-forward.h +0 -81
  190. package/src-native/pods/Headers/include/v8-function-callback.h +0 -475
  191. package/src-native/pods/Headers/include/v8-function.h +0 -125
  192. package/src-native/pods/Headers/include/v8-initialization.h +0 -315
  193. package/src-native/pods/Headers/include/v8-inspector-protocol.h +0 -13
  194. package/src-native/pods/Headers/include/v8-inspector.h +0 -376
  195. package/src-native/pods/Headers/include/v8-internal.h +0 -661
  196. package/src-native/pods/Headers/include/v8-isolate.h +0 -1709
  197. package/src-native/pods/Headers/include/v8-json.h +0 -47
  198. package/src-native/pods/Headers/include/v8-local-handle.h +0 -455
  199. package/src-native/pods/Headers/include/v8-locker.h +0 -149
  200. package/src-native/pods/Headers/include/v8-maybe.h +0 -137
  201. package/src-native/pods/Headers/include/v8-memory-span.h +0 -43
  202. package/src-native/pods/Headers/include/v8-message.h +0 -216
  203. package/src-native/pods/Headers/include/v8-metrics.h +0 -255
  204. package/src-native/pods/Headers/include/v8-microtask-queue.h +0 -152
  205. package/src-native/pods/Headers/include/v8-microtask.h +0 -28
  206. package/src-native/pods/Headers/include/v8-object.h +0 -775
  207. package/src-native/pods/Headers/include/v8-persistent-handle.h +0 -590
  208. package/src-native/pods/Headers/include/v8-platform.h +0 -1092
  209. package/src-native/pods/Headers/include/v8-primitive-object.h +0 -118
  210. package/src-native/pods/Headers/include/v8-primitive.h +0 -866
  211. package/src-native/pods/Headers/include/v8-profiler.h +0 -1198
  212. package/src-native/pods/Headers/include/v8-promise.h +0 -174
  213. package/src-native/pods/Headers/include/v8-proxy.h +0 -50
  214. package/src-native/pods/Headers/include/v8-regexp.h +0 -105
  215. package/src-native/pods/Headers/include/v8-script.h +0 -748
  216. package/src-native/pods/Headers/include/v8-snapshot.h +0 -196
  217. package/src-native/pods/Headers/include/v8-statistics.h +0 -217
  218. package/src-native/pods/Headers/include/v8-template.h +0 -1079
  219. package/src-native/pods/Headers/include/v8-traced-handle.h +0 -420
  220. package/src-native/pods/Headers/include/v8-typed-array.h +0 -282
  221. package/src-native/pods/Headers/include/v8-unwinder-state.h +0 -31
  222. package/src-native/pods/Headers/include/v8-unwinder.h +0 -132
  223. package/src-native/pods/Headers/include/v8-util.h +0 -658
  224. package/src-native/pods/Headers/include/v8-value-serializer-version.h +0 -24
  225. package/src-native/pods/Headers/include/v8-value-serializer.h +0 -279
  226. package/src-native/pods/Headers/include/v8-value.h +0 -526
  227. package/src-native/pods/Headers/include/v8-version-string.h +0 -38
  228. package/src-native/pods/Headers/include/v8-version.h +0 -20
  229. package/src-native/pods/Headers/include/v8-wasm-trap-handler-posix.h +0 -31
  230. package/src-native/pods/Headers/include/v8-wasm-trap-handler-win.h +0 -28
  231. package/src-native/pods/Headers/include/v8-wasm.h +0 -257
  232. package/src-native/pods/Headers/include/v8-weak-callback-info.h +0 -86
  233. package/src-native/pods/Headers/include/v8.h +0 -88
  234. package/src-native/pods/Headers/include/v8config.h +0 -605
  235. package/src-native/pods/Headers/inspector/InspectorServer.h +0 -20
  236. package/src-native/pods/Headers/inspector/JsV8InspectorClient.h +0 -66
  237. package/src-native/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -1123
  238. package/src-native/pods/Headers/inspector/base64.h +0 -9
  239. package/src-native/pods/Headers/inspector/src/base/address-region.h +0 -95
  240. package/src-native/pods/Headers/inspector/src/base/atomic-utils.h +0 -219
  241. package/src-native/pods/Headers/inspector/src/base/atomicops.h +0 -332
  242. package/src-native/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -89
  243. package/src-native/pods/Headers/inspector/src/base/base-export.h +0 -31
  244. package/src-native/pods/Headers/inspector/src/base/bits.h +0 -343
  245. package/src-native/pods/Headers/inspector/src/base/build_config.h +0 -234
  246. package/src-native/pods/Headers/inspector/src/base/compiler-specific.h +0 -136
  247. package/src-native/pods/Headers/inspector/src/base/export-template.h +0 -163
  248. package/src-native/pods/Headers/inspector/src/base/flags.h +0 -130
  249. package/src-native/pods/Headers/inspector/src/base/immediate-crash.h +0 -162
  250. package/src-native/pods/Headers/inspector/src/base/lazy-instance.h +0 -258
  251. package/src-native/pods/Headers/inspector/src/base/logging.h +0 -417
  252. package/src-native/pods/Headers/inspector/src/base/macros.h +0 -423
  253. package/src-native/pods/Headers/inspector/src/base/memory.h +0 -89
  254. package/src-native/pods/Headers/inspector/src/base/once.h +0 -108
  255. package/src-native/pods/Headers/inspector/src/base/optional.h +0 -882
  256. package/src-native/pods/Headers/inspector/src/base/platform/mutex.h +0 -370
  257. package/src-native/pods/Headers/inspector/src/base/platform/platform.h +0 -476
  258. package/src-native/pods/Headers/inspector/src/base/platform/semaphore.h +0 -108
  259. package/src-native/pods/Headers/inspector/src/base/platform/v8-time.h +0 -513
  260. package/src-native/pods/Headers/inspector/src/base/platform/wrappers.h +0 -73
  261. package/src-native/pods/Headers/inspector/src/base/safe_conversions.h +0 -389
  262. package/src-native/pods/Headers/inspector/src/base/safe_conversions_impl.h +0 -822
  263. package/src-native/pods/Headers/inspector/src/base/template-utils.h +0 -113
  264. package/src-native/pods/Headers/inspector/src/base/v8-fallthrough.h +0 -21
  265. package/src-native/pods/Headers/inspector/src/common/checks.h +0 -38
  266. package/src-native/pods/Headers/inspector/src/common/globals.h +0 -1842
  267. package/src-native/pods/Headers/inspector/src/debug/debug-interface.h +0 -667
  268. package/src-native/pods/Headers/inspector/src/debug/interface-types.h +0 -175
  269. package/src-native/pods/Headers/inspector/src/init/v8.h +0 -52
  270. package/src-native/pods/Headers/inspector/src/inspector/custom-preview.h +0 -24
  271. package/src-native/pods/Headers/inspector/src/inspector/injected-script.h +0 -251
  272. package/src-native/pods/Headers/inspector/src/inspector/inspected-context.h +0 -79
  273. package/src-native/pods/Headers/inspector/src/inspector/protocol/CSS.h +0 -2148
  274. package/src-native/pods/Headers/inspector/src/inspector/protocol/Console.h +0 -211
  275. package/src-native/pods/Headers/inspector/src/inspector/protocol/DOM.h +0 -1008
  276. package/src-native/pods/Headers/inspector/src/inspector/protocol/Debugger.h +0 -892
  277. package/src-native/pods/Headers/inspector/src/inspector/protocol/Forward.h +0 -75
  278. package/src-native/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -346
  279. package/src-native/pods/Headers/inspector/src/inspector/protocol/Log.h +0 -342
  280. package/src-native/pods/Headers/inspector/src/inspector/protocol/Network.h +0 -2528
  281. package/src-native/pods/Headers/inspector/src/inspector/protocol/Overlay.h +0 -281
  282. package/src-native/pods/Headers/inspector/src/inspector/protocol/Page.h +0 -1189
  283. package/src-native/pods/Headers/inspector/src/inspector/protocol/Profiler.h +0 -1001
  284. package/src-native/pods/Headers/inspector/src/inspector/protocol/Protocol.h +0 -617
  285. package/src-native/pods/Headers/inspector/src/inspector/protocol/Runtime.h +0 -1696
  286. package/src-native/pods/Headers/inspector/src/inspector/protocol/Schema.h +0 -146
  287. package/src-native/pods/Headers/inspector/src/inspector/protocol/Security.h +0 -793
  288. package/src-native/pods/Headers/inspector/src/inspector/remote-object-id.h +0 -54
  289. package/src-native/pods/Headers/inspector/src/inspector/search-util.h +0 -26
  290. package/src-native/pods/Headers/inspector/src/inspector/string-16.h +0 -180
  291. package/src-native/pods/Headers/inspector/src/inspector/string-util.h +0 -128
  292. package/src-native/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -48
  293. package/src-native/pods/Headers/inspector/src/inspector/v8-console-message.h +0 -147
  294. package/src-native/pods/Headers/inspector/src/inspector/v8-console.h +0 -173
  295. package/src-native/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -62
  296. package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -248
  297. package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-id.h +0 -44
  298. package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-script.h +0 -123
  299. package/src-native/pods/Headers/inspector/src/inspector/v8-debugger.h +0 -257
  300. package/src-native/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -91
  301. package/src-native/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -80
  302. package/src-native/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -191
  303. package/src-native/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -156
  304. package/src-native/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -34
  305. package/src-native/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -71
  306. package/src-native/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -24
  307. package/src-native/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -70
  308. package/src-native/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -88
  309. package/src-native/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -104
  310. package/src-native/pods/Headers/inspector/src/inspector/v8-regex.h +0 -38
  311. package/src-native/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -157
  312. package/src-native/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -38
  313. package/src-native/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -164
  314. package/src-native/pods/Headers/inspector/src/inspector/v8-string-conversions.h +0 -17
  315. package/src-native/pods/Headers/inspector/src/inspector/v8-value-utils.h +0 -23
  316. package/src-native/pods/Headers/inspector/src/inspector/value-mirror.h +0 -87
  317. package/src-native/pods/Headers/inspector/src/libplatform/default-platform.h +0 -92
  318. package/src-native/pods/Headers/inspector/src/logging/tracing-flags.h +0 -50
  319. package/src-native/pods/Headers/inspector/src/numbers/conversions.h +0 -183
  320. package/src-native/pods/Headers/inspector/src/tracing/trace-event.h +0 -664
  321. package/src-native/pods/Headers/inspector/src/utils/allocation.h +0 -367
  322. package/src-native/pods/Headers/inspector/src/utils/vector.h +0 -324
  323. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -305
  324. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -314
  325. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -62
  326. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -6
  327. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -58
  328. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -47
  329. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -80
  330. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -52
  331. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -26
  332. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -104
  333. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -39
  334. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -406
  335. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -32
  336. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -158
  337. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -99
  338. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -139
  339. package/src-native/pods/Headers/inspector/utils.h +0 -32
  340. package/src-native/pods/Headers/inspector/v8-inspector-platform.h +0 -44
  341. package/src-native/pods/Headers/jsi/decorator.h +0 -762
  342. package/src-native/pods/Headers/jsi/instrumentation.h +0 -117
  343. package/src-native/pods/Headers/jsi/jsi-inl.h +0 -322
  344. package/src-native/pods/Headers/jsi/jsi.h +0 -1387
  345. package/src-native/pods/Headers/jsi/jsilib.h +0 -59
  346. package/src-native/pods/Headers/jsi/threadsafe.h +0 -79
  347. package/src-native/pods/Headers/runtime/ArgConverter.h +0 -61
  348. package/src-native/pods/Headers/runtime/ArrayAdapter.h +0 -13
  349. package/src-native/pods/Headers/runtime/Caches.h +0 -98
  350. package/src-native/pods/Headers/runtime/ClassBuilder.h +0 -61
  351. package/src-native/pods/Headers/runtime/Common.h +0 -9
  352. package/src-native/pods/Headers/runtime/ConcurrentMap.h +0 -55
  353. package/src-native/pods/Headers/runtime/ConcurrentQueue.h +0 -28
  354. package/src-native/pods/Headers/runtime/Console.h +0 -27
  355. package/src-native/pods/Headers/runtime/Constants.h +0 -15
  356. package/src-native/pods/Headers/runtime/DataWrapper.h +0 -671
  357. package/src-native/pods/Headers/runtime/DictionaryAdapter.h +0 -13
  358. package/src-native/pods/Headers/runtime/ExtVector.h +0 -21
  359. package/src-native/pods/Headers/runtime/FFICall.h +0 -105
  360. package/src-native/pods/Headers/runtime/FastEnumerationAdapter.h +0 -13
  361. package/src-native/pods/Headers/runtime/FunctionReference.h +0 -18
  362. package/src-native/pods/Headers/runtime/Helpers.h +0 -84
  363. package/src-native/pods/Headers/runtime/InlineFunctions.h +0 -16
  364. package/src-native/pods/Headers/runtime/Interop.h +0 -202
  365. package/src-native/pods/Headers/runtime/KnownUnknownClassPair.h +0 -35
  366. package/src-native/pods/Headers/runtime/Metadata.h +0 -981
  367. package/src-native/pods/Headers/runtime/MetadataBuilder.h +0 -72
  368. package/src-native/pods/Headers/runtime/MetadataInlines.h +0 -157
  369. package/src-native/pods/Headers/runtime/ModuleInternal.h +0 -59
  370. package/src-native/pods/Headers/runtime/NSDataAdapter.h +0 -13
  371. package/src-native/pods/Headers/runtime/NativeScriptException.h +0 -27
  372. package/src-native/pods/Headers/runtime/ObjectManager.h +0 -31
  373. package/src-native/pods/Headers/runtime/OneByteStringResource.h +0 -21
  374. package/src-native/pods/Headers/runtime/Pointer.h +0 -26
  375. package/src-native/pods/Headers/runtime/PromiseProxy.h +0 -15
  376. package/src-native/pods/Headers/runtime/Reference.h +0 -38
  377. package/src-native/pods/Headers/runtime/Runtime.h +0 -67
  378. package/src-native/pods/Headers/runtime/RuntimeConfig.h +0 -17
  379. package/src-native/pods/Headers/runtime/SetTimeout.h +0 -34
  380. package/src-native/pods/Headers/runtime/SimpleAllocator.h +0 -23
  381. package/src-native/pods/Headers/runtime/StringHasher.h +0 -315
  382. package/src-native/pods/Headers/runtime/SymbolIterator.h +0 -18
  383. package/src-native/pods/Headers/runtime/SymbolLoader.h +0 -27
  384. package/src-native/pods/Headers/runtime/TNSDerivedClass.h +0 -8
  385. package/src-native/pods/Headers/runtime/TSHelpers.h +0 -15
  386. package/src-native/pods/Headers/runtime/Tasks.h +0 -19
  387. package/src-native/pods/Headers/runtime/UnmanagedType.h +0 -21
  388. package/src-native/pods/Headers/runtime/WeakRef.h +0 -15
  389. package/src-native/pods/Headers/runtime/Worker.h +0 -26
  390. package/src-native/pods/Headers/runtime/robin_hood.h +0 -2184
  391. package/src-native/pods/Headers/v8runtime/HostProxy.h +0 -71
  392. package/src-native/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -70
  393. package/src-native/pods/Headers/v8runtime/V8PointerValue.h +0 -44
  394. package/src-native/pods/Headers/v8runtime/V8Runtime.h +0 -215
  395. package/src-native/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
  396. package/src-native/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
  397. package/src-native/pods/NativeScript.podspec +0 -68
@@ -1,605 +0,0 @@
1
- // Copyright 2013 the V8 project authors. All rights reserved.
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- #ifndef V8CONFIG_H_
6
- #define V8CONFIG_H_
7
-
8
- #ifdef V8_GN_HEADER
9
- #if __cplusplus >= 201703L && !__has_include("v8-gn.h")
10
- #error Missing v8-gn.h. The configuration for v8 is missing from the include \
11
- path. Add it with -I<path> to the command line
12
- #endif
13
- #include "v8-gn.h" // NOLINT(build/include_directory)
14
- #endif
15
-
16
- // clang-format off
17
-
18
- // Platform headers for feature detection below.
19
- #if defined(__ANDROID__)
20
- # include <sys/cdefs.h>
21
- #elif defined(__APPLE__)
22
- # include <TargetConditionals.h>
23
- #elif defined(__linux__)
24
- # include <features.h>
25
- #endif
26
-
27
-
28
- // This macro allows to test for the version of the GNU C library (or
29
- // a compatible C library that masquerades as glibc). It evaluates to
30
- // 0 if libc is not GNU libc or compatible.
31
- // Use like:
32
- // #if V8_GLIBC_PREREQ(2, 3)
33
- // ...
34
- // #endif
35
- #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
36
- # define V8_GLIBC_PREREQ(major, minor) \
37
- ((__GLIBC__ * 100 + __GLIBC_MINOR__) >= ((major) * 100 + (minor)))
38
- #else
39
- # define V8_GLIBC_PREREQ(major, minor) 0
40
- #endif
41
-
42
-
43
- // This macro allows to test for the version of the GNU C++ compiler.
44
- // Note that this also applies to compilers that masquerade as GCC,
45
- // for example clang and the Intel C++ compiler for Linux.
46
- // Use like:
47
- // #if V8_GNUC_PREREQ(4, 3, 1)
48
- // ...
49
- // #endif
50
- #if defined(__GNUC__) && defined(__GNUC_MINOR__) && defined(__GNUC_PATCHLEVEL__)
51
- # define V8_GNUC_PREREQ(major, minor, patchlevel) \
52
- ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= \
53
- ((major) * 10000 + (minor) * 100 + (patchlevel)))
54
- #elif defined(__GNUC__) && defined(__GNUC_MINOR__)
55
- # define V8_GNUC_PREREQ(major, minor, patchlevel) \
56
- ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100) >= \
57
- ((major) * 10000 + (minor) * 100 + (patchlevel)))
58
- #else
59
- # define V8_GNUC_PREREQ(major, minor, patchlevel) 0
60
- #endif
61
-
62
-
63
-
64
- // -----------------------------------------------------------------------------
65
- // Operating system detection (host)
66
- //
67
- // V8_OS_ANDROID - Android
68
- // V8_OS_BSD - BSDish (macOS, Net/Free/Open/DragonFlyBSD)
69
- // V8_OS_CYGWIN - Cygwin
70
- // V8_OS_DRAGONFLYBSD - DragonFlyBSD
71
- // V8_OS_FREEBSD - FreeBSD
72
- // V8_OS_FUCHSIA - Fuchsia
73
- // V8_OS_LINUX - Linux (Android, ChromeOS, Linux, ...)
74
- // V8_OS_DARWIN - Darwin (macOS, iOS)
75
- // V8_OS_MACOS - macOS
76
- // V8_OS_IOS - iOS
77
- // V8_OS_NETBSD - NetBSD
78
- // V8_OS_OPENBSD - OpenBSD
79
- // V8_OS_POSIX - POSIX compatible (mostly everything except Windows)
80
- // V8_OS_QNX - QNX Neutrino
81
- // V8_OS_SOLARIS - Sun Solaris and OpenSolaris
82
- // V8_OS_STARBOARD - Starboard (platform abstraction for Cobalt)
83
- // V8_OS_AIX - AIX
84
- // V8_OS_WIN - Microsoft Windows
85
-
86
- #if defined(__ANDROID__)
87
- # define V8_OS_ANDROID 1
88
- # define V8_OS_LINUX 1
89
- # define V8_OS_POSIX 1
90
- # define V8_OS_STRING "android"
91
-
92
- #elif defined(__APPLE__)
93
- # define V8_OS_POSIX 1
94
- # define V8_OS_BSD 1
95
- # define V8_OS_DARWIN 1
96
- # if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
97
- # define V8_OS_IOS 1
98
- # define V8_OS_STRING "ios"
99
- # else
100
- # define V8_OS_MACOS 1
101
- # define V8_OS_STRING "macos"
102
- # endif // defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
103
-
104
- #elif defined(__CYGWIN__)
105
- # define V8_OS_CYGWIN 1
106
- # define V8_OS_POSIX 1
107
- # define V8_OS_STRING "cygwin"
108
-
109
- #elif defined(__linux__)
110
- # define V8_OS_LINUX 1
111
- # define V8_OS_POSIX 1
112
- # define V8_OS_STRING "linux"
113
-
114
- #elif defined(__sun)
115
- # define V8_OS_POSIX 1
116
- # define V8_OS_SOLARIS 1
117
- # define V8_OS_STRING "sun"
118
-
119
- #elif defined(STARBOARD)
120
- # define V8_OS_STARBOARD 1
121
- # define V8_OS_STRING "starboard"
122
-
123
- #elif defined(_AIX)
124
- # define V8_OS_POSIX 1
125
- # define V8_OS_AIX 1
126
- # define V8_OS_STRING "aix"
127
-
128
- #elif defined(__FreeBSD__)
129
- # define V8_OS_BSD 1
130
- # define V8_OS_FREEBSD 1
131
- # define V8_OS_POSIX 1
132
- # define V8_OS_STRING "freebsd"
133
-
134
- #elif defined(__Fuchsia__)
135
- # define V8_OS_FUCHSIA 1
136
- # define V8_OS_POSIX 1
137
- # define V8_OS_STRING "fuchsia"
138
-
139
- #elif defined(__DragonFly__)
140
- # define V8_OS_BSD 1
141
- # define V8_OS_DRAGONFLYBSD 1
142
- # define V8_OS_POSIX 1
143
- # define V8_OS_STRING "dragonflybsd"
144
-
145
- #elif defined(__NetBSD__)
146
- # define V8_OS_BSD 1
147
- # define V8_OS_NETBSD 1
148
- # define V8_OS_POSIX 1
149
- # define V8_OS_STRING "netbsd"
150
-
151
- #elif defined(__OpenBSD__)
152
- # define V8_OS_BSD 1
153
- # define V8_OS_OPENBSD 1
154
- # define V8_OS_POSIX 1
155
- # define V8_OS_STRING "openbsd"
156
-
157
- #elif defined(__QNXNTO__)
158
- # define V8_OS_POSIX 1
159
- # define V8_OS_QNX 1
160
- # define V8_OS_STRING "qnx"
161
-
162
- #elif defined(_WIN32)
163
- # define V8_OS_WIN 1
164
- # define V8_OS_STRING "windows"
165
- #endif
166
-
167
- // -----------------------------------------------------------------------------
168
- // Operating system detection (target)
169
- //
170
- // V8_TARGET_OS_ANDROID
171
- // V8_TARGET_OS_FUCHSIA
172
- // V8_TARGET_OS_IOS
173
- // V8_TARGET_OS_LINUX
174
- // V8_TARGET_OS_MACOS
175
- // V8_TARGET_OS_WIN
176
- //
177
- // If not set explicitly, these fall back to corresponding V8_OS_ values.
178
-
179
- #ifdef V8_HAVE_TARGET_OS
180
-
181
- // The target OS is provided, just check that at least one known value is set.
182
- # if !defined(V8_TARGET_OS_ANDROID) \
183
- && !defined(V8_TARGET_OS_FUCHSIA) \
184
- && !defined(V8_TARGET_OS_IOS) \
185
- && !defined(V8_TARGET_OS_LINUX) \
186
- && !defined(V8_TARGET_OS_MACOS) \
187
- && !defined(V8_TARGET_OS_WIN)
188
- # error No known target OS defined.
189
- # endif
190
-
191
- #else // V8_HAVE_TARGET_OS
192
-
193
- # if defined(V8_TARGET_OS_ANDROID) \
194
- || defined(V8_TARGET_OS_FUCHSIA) \
195
- || defined(V8_TARGET_OS_IOS) \
196
- || defined(V8_TARGET_OS_LINUX) \
197
- || defined(V8_TARGET_OS_MACOS) \
198
- || defined(V8_TARGET_OS_WIN)
199
- # error A target OS is defined but V8_HAVE_TARGET_OS is unset.
200
- # endif
201
-
202
- // Fall back to the detected host OS.
203
- #ifdef V8_OS_ANDROID
204
- # define V8_TARGET_OS_ANDROID
205
- #endif
206
-
207
- #ifdef V8_OS_FUCHSIA
208
- # define V8_TARGET_OS_FUCHSIA
209
- #endif
210
-
211
- #ifdef V8_OS_IOS
212
- # define V8_TARGET_OS_IOS
213
- #endif
214
-
215
- #ifdef V8_OS_LINUX
216
- # define V8_TARGET_OS_LINUX
217
- #endif
218
-
219
- #ifdef V8_OS_MACOS
220
- # define V8_TARGET_OS_MACOS
221
- #endif
222
-
223
- #ifdef V8_OS_WIN
224
- # define V8_TARGET_OS_WIN
225
- #endif
226
-
227
- #endif // V8_HAVE_TARGET_OS
228
-
229
- #if defined(V8_TARGET_OS_ANDROID)
230
- # define V8_TARGET_OS_STRING "android"
231
- #elif defined(V8_TARGET_OS_FUCHSIA)
232
- # define V8_TARGET_OS_STRING "fuchsia"
233
- #elif defined(V8_TARGET_OS_IOS)
234
- # define V8_TARGET_OS_STRING "ios"
235
- #elif defined(V8_TARGET_OS_LINUX)
236
- # define V8_TARGET_OS_STRING "linux"
237
- #elif defined(V8_TARGET_OS_MACOS)
238
- # define V8_TARGET_OS_STRING "macos"
239
- #elif defined(V8_TARGET_OS_WINDOWS)
240
- # define V8_TARGET_OS_STRING "windows"
241
- #else
242
- # define V8_TARGET_OS_STRING "unknown"
243
- #endif
244
-
245
- // -----------------------------------------------------------------------------
246
- // C library detection
247
- //
248
- // V8_LIBC_MSVCRT - MSVC libc
249
- // V8_LIBC_BIONIC - Bionic libc
250
- // V8_LIBC_BSD - BSD libc derivate
251
- // V8_LIBC_GLIBC - GNU C library
252
- // V8_LIBC_UCLIBC - uClibc
253
- //
254
- // Note that testing for libc must be done using #if not #ifdef. For example,
255
- // to test for the GNU C library, use:
256
- // #if V8_LIBC_GLIBC
257
- // ...
258
- // #endif
259
-
260
- #if defined (_MSC_VER)
261
- # define V8_LIBC_MSVCRT 1
262
- #elif defined(__BIONIC__)
263
- # define V8_LIBC_BIONIC 1
264
- # define V8_LIBC_BSD 1
265
- #elif defined(__UCLIBC__)
266
- // Must test for UCLIBC before GLIBC, as UCLIBC pretends to be GLIBC.
267
- # define V8_LIBC_UCLIBC 1
268
- #elif defined(__GLIBC__) || defined(__GNU_LIBRARY__)
269
- # define V8_LIBC_GLIBC 1
270
- #else
271
- # define V8_LIBC_BSD V8_OS_BSD
272
- #endif
273
-
274
-
275
- // -----------------------------------------------------------------------------
276
- // Compiler detection
277
- //
278
- // V8_CC_GNU - GCC, or clang in gcc mode
279
- // V8_CC_INTEL - Intel C++
280
- // V8_CC_MINGW - Minimalist GNU for Windows
281
- // V8_CC_MINGW32 - Minimalist GNU for Windows (mingw32)
282
- // V8_CC_MINGW64 - Minimalist GNU for Windows (mingw-w64)
283
- // V8_CC_MSVC - Microsoft Visual C/C++, or clang in cl.exe mode
284
- //
285
- // C++11 feature detection
286
- //
287
- // Compiler-specific feature detection
288
- //
289
- // V8_HAS_ATTRIBUTE_ALWAYS_INLINE - __attribute__((always_inline))
290
- // supported
291
- // V8_HAS_ATTRIBUTE_NONNULL - __attribute__((nonnull)) supported
292
- // V8_HAS_ATTRIBUTE_NOINLINE - __attribute__((noinline)) supported
293
- // V8_HAS_ATTRIBUTE_UNUSED - __attribute__((unused)) supported
294
- // V8_HAS_ATTRIBUTE_VISIBILITY - __attribute__((visibility)) supported
295
- // V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT - __attribute__((warn_unused_result))
296
- // supported
297
- // V8_HAS_CPP_ATTRIBUTE_NODISCARD - [[nodiscard]] supported
298
- // V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS
299
- // - [[no_unique_address]] supported
300
- // V8_HAS_BUILTIN_BSWAP16 - __builtin_bswap16() supported
301
- // V8_HAS_BUILTIN_BSWAP32 - __builtin_bswap32() supported
302
- // V8_HAS_BUILTIN_BSWAP64 - __builtin_bswap64() supported
303
- // V8_HAS_BUILTIN_CLZ - __builtin_clz() supported
304
- // V8_HAS_BUILTIN_CTZ - __builtin_ctz() supported
305
- // V8_HAS_BUILTIN_EXPECT - __builtin_expect() supported
306
- // V8_HAS_BUILTIN_FRAME_ADDRESS - __builtin_frame_address() supported
307
- // V8_HAS_BUILTIN_POPCOUNT - __builtin_popcount() supported
308
- // V8_HAS_BUILTIN_SADD_OVERFLOW - __builtin_sadd_overflow() supported
309
- // V8_HAS_BUILTIN_SSUB_OVERFLOW - __builtin_ssub_overflow() supported
310
- // V8_HAS_BUILTIN_UADD_OVERFLOW - __builtin_uadd_overflow() supported
311
- // V8_HAS_COMPUTED_GOTO - computed goto/labels as values
312
- // supported
313
- // V8_HAS_DECLSPEC_NOINLINE - __declspec(noinline) supported
314
- // V8_HAS_DECLSPEC_SELECTANY - __declspec(selectany) supported
315
- // V8_HAS___FORCEINLINE - __forceinline supported
316
- //
317
- // Note that testing for compilers and/or features must be done using #if
318
- // not #ifdef. For example, to test for Intel C++ Compiler, use:
319
- // #if V8_CC_INTEL
320
- // ...
321
- // #endif
322
-
323
- #if defined(__has_cpp_attribute)
324
- #define V8_HAS_CPP_ATTRIBUTE(FEATURE) __has_cpp_attribute(FEATURE)
325
- #else
326
- #define V8_HAS_CPP_ATTRIBUTE(FEATURE) 0
327
- #endif
328
-
329
- #if defined(__clang__)
330
-
331
- #if defined(__GNUC__) // Clang in gcc mode.
332
- # define V8_CC_GNU 1
333
- #endif
334
-
335
- # define V8_HAS_ATTRIBUTE_ALWAYS_INLINE (__has_attribute(always_inline))
336
- # define V8_HAS_ATTRIBUTE_NONNULL (__has_attribute(nonnull))
337
- # define V8_HAS_ATTRIBUTE_NOINLINE (__has_attribute(noinline))
338
- # define V8_HAS_ATTRIBUTE_UNUSED (__has_attribute(unused))
339
- # define V8_HAS_ATTRIBUTE_VISIBILITY (__has_attribute(visibility))
340
- # define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT \
341
- (__has_attribute(warn_unused_result))
342
-
343
- # define V8_HAS_CPP_ATTRIBUTE_NODISCARD (V8_HAS_CPP_ATTRIBUTE(nodiscard))
344
- # define V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS \
345
- (V8_HAS_CPP_ATTRIBUTE(no_unique_address))
346
-
347
- # define V8_HAS_BUILTIN_ASSUME_ALIGNED (__has_builtin(__builtin_assume_aligned))
348
- # define V8_HAS_BUILTIN_BSWAP16 (__has_builtin(__builtin_bswap16))
349
- # define V8_HAS_BUILTIN_BSWAP32 (__has_builtin(__builtin_bswap32))
350
- # define V8_HAS_BUILTIN_BSWAP64 (__has_builtin(__builtin_bswap64))
351
- # define V8_HAS_BUILTIN_CLZ (__has_builtin(__builtin_clz))
352
- # define V8_HAS_BUILTIN_CTZ (__has_builtin(__builtin_ctz))
353
- # define V8_HAS_BUILTIN_EXPECT (__has_builtin(__builtin_expect))
354
- # define V8_HAS_BUILTIN_FRAME_ADDRESS (__has_builtin(__builtin_frame_address))
355
- # define V8_HAS_BUILTIN_POPCOUNT (__has_builtin(__builtin_popcount))
356
- # define V8_HAS_BUILTIN_SADD_OVERFLOW (__has_builtin(__builtin_sadd_overflow))
357
- # define V8_HAS_BUILTIN_SSUB_OVERFLOW (__has_builtin(__builtin_ssub_overflow))
358
- # define V8_HAS_BUILTIN_UADD_OVERFLOW (__has_builtin(__builtin_uadd_overflow))
359
-
360
- // Clang has no __has_feature for computed gotos.
361
- // GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
362
- # define V8_HAS_COMPUTED_GOTO 1
363
-
364
- #elif defined(__GNUC__)
365
-
366
- # define V8_CC_GNU 1
367
- # if defined(__INTEL_COMPILER) // Intel C++ also masquerades as GCC 3.2.0
368
- # define V8_CC_INTEL 1
369
- # endif
370
- # if defined(__MINGW32__)
371
- # define V8_CC_MINGW32 1
372
- # endif
373
- # if defined(__MINGW64__)
374
- # define V8_CC_MINGW64 1
375
- # endif
376
- # define V8_CC_MINGW (V8_CC_MINGW32 || V8_CC_MINGW64)
377
-
378
- // always_inline is available in gcc 4.0 but not very reliable until 4.4.
379
- // Works around "sorry, unimplemented: inlining failed" build errors with
380
- // older compilers.
381
- # define V8_HAS_ATTRIBUTE_ALWAYS_INLINE 1
382
- # define V8_HAS_ATTRIBUTE_NOINLINE 1
383
- # define V8_HAS_ATTRIBUTE_UNUSED 1
384
- # define V8_HAS_ATTRIBUTE_VISIBILITY 1
385
- # define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT (!V8_CC_INTEL)
386
-
387
- // [[nodiscard]] does not work together with with
388
- // __attribute__((visibility(""))) on GCC 7.4 which is why there is no define
389
- // for V8_HAS_CPP_ATTRIBUTE_NODISCARD. See https://crbug.com/v8/11707.
390
-
391
- # define V8_HAS_BUILTIN_ASSUME_ALIGNED 1
392
- # define V8_HAS_BUILTIN_CLZ 1
393
- # define V8_HAS_BUILTIN_CTZ 1
394
- # define V8_HAS_BUILTIN_EXPECT 1
395
- # define V8_HAS_BUILTIN_FRAME_ADDRESS 1
396
- # define V8_HAS_BUILTIN_POPCOUNT 1
397
-
398
- // GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
399
- #define V8_HAS_COMPUTED_GOTO 1
400
-
401
- #endif
402
-
403
- #if defined(_MSC_VER)
404
- # define V8_CC_MSVC 1
405
-
406
- # define V8_HAS_DECLSPEC_NOINLINE 1
407
- # define V8_HAS_DECLSPEC_SELECTANY 1
408
-
409
- # define V8_HAS___FORCEINLINE 1
410
-
411
- #endif
412
-
413
-
414
- // -----------------------------------------------------------------------------
415
- // Helper macros
416
-
417
- // A macro used to make better inlining. Don't bother for debug builds.
418
- // Use like:
419
- // V8_INLINE int GetZero() { return 0; }
420
- #if !defined(DEBUG) && V8_HAS_ATTRIBUTE_ALWAYS_INLINE
421
- # define V8_INLINE inline __attribute__((always_inline))
422
- #elif !defined(DEBUG) && V8_HAS___FORCEINLINE
423
- # define V8_INLINE __forceinline
424
- #else
425
- # define V8_INLINE inline
426
- #endif
427
-
428
- #if V8_HAS_BUILTIN_ASSUME_ALIGNED
429
- # define V8_ASSUME_ALIGNED(ptr, alignment) \
430
- __builtin_assume_aligned((ptr), (alignment))
431
- #else
432
- # define V8_ASSUME_ALIGNED(ptr, alignment) (ptr)
433
- #endif
434
-
435
-
436
- // A macro to mark specific arguments as non-null.
437
- // Use like:
438
- // int add(int* x, int y, int* z) V8_NONNULL(1, 3) { return *x + y + *z; }
439
- #if V8_HAS_ATTRIBUTE_NONNULL
440
- # define V8_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
441
- #else
442
- # define V8_NONNULL(...) /* NOT SUPPORTED */
443
- #endif
444
-
445
-
446
- // A macro used to tell the compiler to never inline a particular function.
447
- // Use like:
448
- // V8_NOINLINE int GetMinusOne() { return -1; }
449
- #if V8_HAS_ATTRIBUTE_NOINLINE
450
- # define V8_NOINLINE __attribute__((noinline))
451
- #elif V8_HAS_DECLSPEC_NOINLINE
452
- # define V8_NOINLINE __declspec(noinline)
453
- #else
454
- # define V8_NOINLINE /* NOT SUPPORTED */
455
- #endif
456
-
457
-
458
- // A macro (V8_DEPRECATED) to mark classes or functions as deprecated.
459
- #if defined(V8_DEPRECATION_WARNINGS)
460
- # define V8_DEPRECATED(message) [[deprecated(message)]]
461
- #else
462
- # define V8_DEPRECATED(message)
463
- #endif
464
-
465
-
466
- // A macro (V8_DEPRECATE_SOON) to make it easier to see what will be deprecated.
467
- #if defined(V8_IMMINENT_DEPRECATION_WARNINGS)
468
- # define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
469
- #else
470
- # define V8_DEPRECATE_SOON(message)
471
- #endif
472
-
473
-
474
- #if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ < 6)
475
- # define V8_ENUM_DEPRECATED(message)
476
- # define V8_ENUM_DEPRECATE_SOON(message)
477
- #else
478
- # define V8_ENUM_DEPRECATED(message) V8_DEPRECATED(message)
479
- # define V8_ENUM_DEPRECATE_SOON(message) V8_DEPRECATE_SOON(message)
480
- #endif
481
-
482
-
483
- // A macro to provide the compiler with branch prediction information.
484
- #if V8_HAS_BUILTIN_EXPECT
485
- # define V8_UNLIKELY(condition) (__builtin_expect(!!(condition), 0))
486
- # define V8_LIKELY(condition) (__builtin_expect(!!(condition), 1))
487
- #else
488
- # define V8_UNLIKELY(condition) (condition)
489
- # define V8_LIKELY(condition) (condition)
490
- #endif
491
-
492
-
493
- // Annotate a function indicating the caller must examine the return value.
494
- // Use like:
495
- // int foo() V8_WARN_UNUSED_RESULT;
496
- #if V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT
497
- #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
498
- #else
499
- #define V8_WARN_UNUSED_RESULT /* NOT SUPPORTED */
500
- #endif
501
-
502
-
503
- // Annotate a class or constructor indicating the caller must assign the
504
- // constructed instances.
505
- // Apply to the whole class like:
506
- // class V8_NODISCARD Foo() { ... };
507
- // or apply to just one constructor like:
508
- // V8_NODISCARD Foo() { ... };
509
- // [[nodiscard]] comes in C++17 but supported in clang with -std >= c++11.
510
- #if V8_HAS_CPP_ATTRIBUTE_NODISCARD
511
- #define V8_NODISCARD [[nodiscard]]
512
- #else
513
- #define V8_NODISCARD /* NOT SUPPORTED */
514
- #endif
515
-
516
- // The no_unique_address attribute allows tail padding in a non-static data
517
- // member to overlap other members of the enclosing class (and in the special
518
- // case when the type is empty, permits it to fully overlap other members). The
519
- // field is laid out as if a base class were encountered at the corresponding
520
- // point within the class (except that it does not share a vptr with the
521
- // enclosing object).
522
- //
523
- // Apply to a data member like:
524
- //
525
- // class Foo {
526
- // V8_NO_UNIQUE_ADDRESS Bar bar_;
527
- // };
528
- //
529
- // [[no_unique_address]] comes in C++20 but supported in clang with
530
- // -std >= c++11.
531
- #if V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS
532
- #define V8_NO_UNIQUE_ADDRESS [[no_unique_address]]
533
- #else
534
- #define V8_NO_UNIQUE_ADDRESS /* NOT SUPPORTED */
535
- #endif
536
-
537
- // Helper macro to define no_sanitize attributes only with clang.
538
- #if defined(__clang__) && defined(__has_attribute)
539
- #if __has_attribute(no_sanitize)
540
- #define V8_CLANG_NO_SANITIZE(what) __attribute__((no_sanitize(what)))
541
- #endif
542
- #endif
543
- #if !defined(V8_CLANG_NO_SANITIZE)
544
- #define V8_CLANG_NO_SANITIZE(what)
545
- #endif
546
-
547
- #if defined(BUILDING_V8_SHARED) && defined(USING_V8_SHARED)
548
- #error Inconsistent build configuration: To build the V8 shared library \
549
- set BUILDING_V8_SHARED, to include its headers for linking against the \
550
- V8 shared library set USING_V8_SHARED.
551
- #endif
552
-
553
- #ifdef V8_OS_WIN
554
-
555
- // Setup for Windows DLL export/import. When building the V8 DLL the
556
- // BUILDING_V8_SHARED needs to be defined. When building a program which uses
557
- // the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8
558
- // static library or building a program which uses the V8 static library neither
559
- // BUILDING_V8_SHARED nor USING_V8_SHARED should be defined.
560
- #ifdef BUILDING_V8_SHARED
561
- # define V8_EXPORT __declspec(dllexport)
562
- #elif USING_V8_SHARED
563
- # define V8_EXPORT __declspec(dllimport)
564
- #else
565
- # define V8_EXPORT
566
- #endif // BUILDING_V8_SHARED
567
-
568
- #else // V8_OS_WIN
569
-
570
- // Setup for Linux shared library export.
571
- #if V8_HAS_ATTRIBUTE_VISIBILITY
572
- # ifdef BUILDING_V8_SHARED
573
- # define V8_EXPORT __attribute__ ((visibility("default")))
574
- # else
575
- # define V8_EXPORT
576
- # endif
577
- #else
578
- # define V8_EXPORT
579
- #endif
580
-
581
- #endif // V8_OS_WIN
582
-
583
- // The sandbox is available (i.e. defined) when pointer compression
584
- // is enabled, but it is only used when V8_SANDBOX is enabled as
585
- // well. This allows better test coverage of the sandbox.
586
- #if defined(V8_COMPRESS_POINTERS)
587
- #define V8_SANDBOX_IS_AVAILABLE
588
- #endif
589
-
590
- #if defined(V8_SANDBOX) && !defined(V8_SANDBOX_IS_AVAILABLE)
591
- #error Inconsistent configuration: sandbox is enabled but not available
592
- #endif
593
-
594
- // From C++17 onwards, static constexpr member variables are defined to be
595
- // "inline", and adding a separate definition for them can trigger deprecation
596
- // warnings. For C++14 and below, however, these definitions are required.
597
- #if __cplusplus < 201703L && (!defined(_MSVC_LANG) || _MSVC_LANG < 201703L)
598
- #define V8_STATIC_CONSTEXPR_VARIABLES_NEED_DEFINITIONS
599
- #endif
600
-
601
- // clang-format on
602
-
603
- #undef V8_HAS_CPP_ATTRIBUTE
604
-
605
- #endif // V8CONFIG_H_
@@ -1,20 +0,0 @@
1
- #ifndef InspectorServer_h
2
- #define InspectorServer_h
3
-
4
- #include <functional>
5
- #include <string>
6
- #include <sys/types.h>
7
- #include <dispatch/dispatch.h>
8
-
9
- namespace v8_inspector {
10
-
11
- class InspectorServer {
12
- public:
13
- static in_port_t Init(std::function<void (std::function<void (std::string)>)> onClientConnected, std::function<void (std::string)> onMessage);
14
- private:
15
- static void Send(dispatch_io_t channel, dispatch_queue_t queue, std::string message);
16
- };
17
-
18
- }
19
-
20
- #endif /* InspectorServer_h */
@@ -1,66 +0,0 @@
1
- #ifndef JsV8InspectorClient_h
2
- #define JsV8InspectorClient_h
3
-
4
- #include <functional>
5
- #include <dispatch/dispatch.h>
6
- #include <string>
7
- #include <vector>
8
- #include <map>
9
-
10
- #include "include/v8-inspector.h"
11
- #include "runtime/Runtime.h"
12
-
13
- namespace v8_inspector {
14
-
15
- class JsV8InspectorClient : V8InspectorClient, V8Inspector::Channel {
16
- public:
17
- JsV8InspectorClient(tns::Runtime* runtime);
18
- void init();
19
- void connect(int argc, char** argv);
20
- void createInspectorSession();
21
- void disconnect();
22
- void dispatchMessage(const std::string& message);
23
-
24
- void sendResponse(int callId, std::unique_ptr<StringBuffer> message) override;
25
- void sendNotification(std::unique_ptr<StringBuffer> message) override;
26
- void flushProtocolNotifications() override;
27
-
28
- void runMessageLoopOnPause(int contextGroupId) override;
29
- void quitMessageLoopOnPause() override;
30
- v8::Local<v8::Context> ensureDefaultContextInGroup(int contextGroupId) override;
31
-
32
- void scheduleBreak();
33
- void registerModules();
34
-
35
- static std::map<std::string, v8::Persistent<v8::Object>*> Domains;
36
- private:
37
- static int contextGroupId;
38
- bool isConnected_;
39
- std::unique_ptr<V8Inspector> inspector_;
40
- v8::Persistent<v8::Context> context_;
41
- std::unique_ptr<V8InspectorSession> session_;
42
- tns::Runtime* runtime_;
43
- bool terminated_;
44
- std::vector<std::string> messages_;
45
- bool runningNestedLoops_;
46
- dispatch_queue_t messagesQueue_;
47
- dispatch_queue_t messageLoopQueue_;
48
- dispatch_semaphore_t messageArrived_;
49
- std::function<void (std::string)> sender_;
50
- bool isWaitingForDebugger_;
51
-
52
- void enableInspector(int argc, char** argv);
53
- void notify(std::unique_ptr<StringBuffer> message);
54
- void onFrontendConnected(std::function<void (std::string)> sender);
55
- void onFrontendMessageReceived(std::string message);
56
- template <class TypeName>
57
- static v8::Local<TypeName> PersistentToLocal(v8::Isolate* isolate, const v8::Persistent<TypeName>& persistent);
58
- std::string PumpMessage();
59
- static void registerDomainDispatcherCallback(const v8::FunctionCallbackInfo<v8::Value>& args);
60
- static void inspectorSendEventCallback(const v8::FunctionCallbackInfo<v8::Value>& args);
61
- static void inspectorTimestampCallback(const v8::FunctionCallbackInfo<v8::Value>& args);
62
- };
63
-
64
- }
65
-
66
- #endif /* JsV8InspectorClient_h */