react-nitro-yoga 0.0.0-stage → 0.0.1-alpha.7

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 (529) hide show
  1. package/Generated/.gitattributes +1 -0
  2. package/Generated/api.d.ts +100 -0
  3. package/Generated/ffigen_yoga_adapters.h +52 -0
  4. package/Generated/native.d.ts +84 -0
  5. package/Generated/native.ts +283 -0
  6. package/Generated/yoga.c +1087 -0
  7. package/LICENSE +21 -0
  8. package/Package.swift +57 -0
  9. package/README.md +61 -2
  10. package/Sources/ReactNitroYoga/InstallHermesBindings.cpp +11 -0
  11. package/Sources/ReactNitroYoga/SHUnit.h +16 -0
  12. package/include/ReactNitroYoga/InstallHermesBindings.hpp +12 -0
  13. package/package.json +26 -4
  14. package/yoga/.clang-format +109 -0
  15. package/yoga/.clang-tidy +217 -0
  16. package/yoga/.editorconfig +11 -0
  17. package/yoga/.eslintrc.cjs +84 -0
  18. package/yoga/.github/ISSUE_TEMPLATE.md +21 -0
  19. package/yoga/.github/actions/black/action.yml +25 -0
  20. package/yoga/.github/actions/cache-emsdk/action.yml +10 -0
  21. package/yoga/.github/actions/install-ninja/action.yml +14 -0
  22. package/yoga/.github/actions/setup-android/action.yml +12 -0
  23. package/yoga/.github/actions/setup-apple/action.yml +8 -0
  24. package/yoga/.github/actions/setup-cpp/action.yml +34 -0
  25. package/yoga/.github/actions/setup-js/action.yml +18 -0
  26. package/yoga/.github/workflows/publish-android-release.yml +38 -0
  27. package/yoga/.github/workflows/publish-android-snashot.yml +36 -0
  28. package/yoga/.github/workflows/publish-npm-release.yml +25 -0
  29. package/yoga/.github/workflows/validate-android.yml +30 -0
  30. package/yoga/.github/workflows/validate-cpp.yml +101 -0
  31. package/yoga/.github/workflows/validate-format.yml +36 -0
  32. package/yoga/.github/workflows/validate-js.yml +119 -0
  33. package/yoga/.github/workflows/validate-swiftpm.yml +29 -0
  34. package/yoga/.github/workflows/validate-tests.yml +35 -0
  35. package/yoga/.github/workflows/validate-website.yml +45 -0
  36. package/yoga/.prettierignore +3 -0
  37. package/yoga/.prettierrc.js +16 -0
  38. package/yoga/.vscode/extensions.json +7 -0
  39. package/yoga/.vscode/launch.json +25 -0
  40. package/yoga/.vscode/settings.json +20 -0
  41. package/yoga/.vscode/tasks.json +23 -0
  42. package/yoga/CMakeLists.txt +58 -0
  43. package/yoga/CODE_OF_CONDUCT.md +76 -0
  44. package/yoga/CONTRIBUTING.md +44 -0
  45. package/yoga/LICENSE +21 -0
  46. package/yoga/LICENSE-examples +9 -0
  47. package/yoga/Package.swift +32 -0
  48. package/yoga/README.md +36 -0
  49. package/yoga/benchmark/Benchmark.cpp +400 -0
  50. package/yoga/benchmark/Benchmark.h +39 -0
  51. package/yoga/benchmark/CMakeLists.txt +27 -0
  52. package/yoga/benchmark/TreeDeserialization.cpp +248 -0
  53. package/yoga/benchmark/TreeDeserialization.h +52 -0
  54. package/yoga/benchmark/YGBenchmark.c +183 -0
  55. package/yoga/benchmark/benchmark +15 -0
  56. package/yoga/benchmark/captures/chat-mac.json +24426 -0
  57. package/yoga/benchmark/captures/feed-android.json +10335 -0
  58. package/yoga/benchmark/captures/profile-ios.json +1955 -0
  59. package/yoga/benchmark/captures/rendering-sample-mac.json +1927 -0
  60. package/yoga/build.gradle +46 -0
  61. package/yoga/build_fuzz_tests +28 -0
  62. package/yoga/capture/CMakeLists.txt +23 -0
  63. package/yoga/capture/CaptureTree.cpp +100 -0
  64. package/yoga/capture/CaptureTree.h +47 -0
  65. package/yoga/capture/NodeToString.cpp +359 -0
  66. package/yoga/capture/NodeToString.h +40 -0
  67. package/yoga/cmake/project-defaults.cmake +50 -0
  68. package/yoga/cmake/yoga-config.cmake.in +10 -0
  69. package/yoga/enums.py +394 -0
  70. package/yoga/fuzz/CMakeLists.txt +21 -0
  71. package/yoga/fuzz/FuzzLayout.cpp +57 -0
  72. package/yoga/gentest/babel.config.cjs +12 -0
  73. package/yoga/gentest/fixtures/YGAbsolutePositionTest.html +168 -0
  74. package/yoga/gentest/fixtures/YGAlignContentTest.html +479 -0
  75. package/yoga/gentest/fixtures/YGAlignItemsTest.html +227 -0
  76. package/yoga/gentest/fixtures/YGAlignSelfTest.html +23 -0
  77. package/yoga/gentest/fixtures/YGAndroidNewsFeed.html +28 -0
  78. package/yoga/gentest/fixtures/YGAspectRatioTest.html +3 -0
  79. package/yoga/gentest/fixtures/YGAutoTest.html +25 -0
  80. package/yoga/gentest/fixtures/YGBorderTest.html +18 -0
  81. package/yoga/gentest/fixtures/YGBoxSizingTest.html +240 -0
  82. package/yoga/gentest/fixtures/YGDimensionTest.html +9 -0
  83. package/yoga/gentest/fixtures/YGDisplayTest.html +89 -0
  84. package/yoga/gentest/fixtures/YGFlexBasisFitContentTest.html +55 -0
  85. package/yoga/gentest/fixtures/YGFlexDirectionTest.html +391 -0
  86. package/yoga/gentest/fixtures/YGFlexTest.html +53 -0
  87. package/yoga/gentest/fixtures/YGFlexWrapTest.html +160 -0
  88. package/yoga/gentest/fixtures/YGGapTest.html +233 -0
  89. package/yoga/gentest/fixtures/YGIntrinsicSizeTest.html +295 -0
  90. package/yoga/gentest/fixtures/YGJustifyContentTest.html +164 -0
  91. package/yoga/gentest/fixtures/YGMarginTest.html +157 -0
  92. package/yoga/gentest/fixtures/YGMinMaxDimensionTest.html +116 -0
  93. package/yoga/gentest/fixtures/YGPaddingTest.html +29 -0
  94. package/yoga/gentest/fixtures/YGPercentageTest.html +125 -0
  95. package/yoga/gentest/fixtures/YGRoundingTest.html +95 -0
  96. package/yoga/gentest/fixtures/YGSizeOverflowTest.html +17 -0
  97. package/yoga/gentest/fixtures/YGStaticPositionTest.html +712 -0
  98. package/yoga/gentest/fonts/Ahem.ttf +0 -0
  99. package/yoga/gentest/gentest-driver.ts +141 -0
  100. package/yoga/gentest/gentest-validate.ts +43 -0
  101. package/yoga/gentest/package.json +24 -0
  102. package/yoga/gentest/scripts/gentest-validate.ts +43 -0
  103. package/yoga/gentest/signedsource.d.ts +10 -0
  104. package/yoga/gentest/src/ChromePool.ts +78 -0
  105. package/yoga/gentest/src/CssToYoga.ts +958 -0
  106. package/yoga/gentest/src/buildLayoutTree.ts +98 -0
  107. package/yoga/gentest/src/cli.ts +163 -0
  108. package/yoga/gentest/src/emitters/CppEmitter.ts +452 -0
  109. package/yoga/gentest/src/emitters/Emitter.ts +204 -0
  110. package/yoga/gentest/src/emitters/JavaEmitter.ts +469 -0
  111. package/yoga/gentest/src/emitters/JavascriptEmitter.ts +353 -0
  112. package/yoga/gentest/src/types.ts +41 -0
  113. package/yoga/gentest/test-template.html +42 -0
  114. package/yoga/gentest/tsconfig.json +13 -0
  115. package/yoga/gradle/wrapper/gradle-wrapper.jar +0 -0
  116. package/yoga/gradle/wrapper/gradle-wrapper.properties +7 -0
  117. package/yoga/gradle.properties +14 -0
  118. package/yoga/gradlew +251 -0
  119. package/yoga/gradlew.bat +94 -0
  120. package/yoga/java/AndroidManifest.xml +14 -0
  121. package/yoga/java/CMakeLists.txt +22 -0
  122. package/yoga/java/build.gradle.kts +127 -0
  123. package/yoga/java/com/facebook/yoga/LayoutPassReason.kt +35 -0
  124. package/yoga/java/com/facebook/yoga/YogaAlign.kt +45 -0
  125. package/yoga/java/com/facebook/yoga/YogaBaselineFunction.kt +16 -0
  126. package/yoga/java/com/facebook/yoga/YogaBoxSizing.kt +27 -0
  127. package/yoga/java/com/facebook/yoga/YogaConfig.kt +48 -0
  128. package/yoga/java/com/facebook/yoga/YogaConfigFactory.kt +12 -0
  129. package/yoga/java/com/facebook/yoga/YogaConfigJNIBase.kt +70 -0
  130. package/yoga/java/com/facebook/yoga/YogaConfigJNIFinalizer.kt +30 -0
  131. package/yoga/java/com/facebook/yoga/YogaConstants.kt +18 -0
  132. package/yoga/java/com/facebook/yoga/YogaDimension.kt +27 -0
  133. package/yoga/java/com/facebook/yoga/YogaDirection.kt +29 -0
  134. package/yoga/java/com/facebook/yoga/YogaDisplay.kt +31 -0
  135. package/yoga/java/com/facebook/yoga/YogaEdge.kt +41 -0
  136. package/yoga/java/com/facebook/yoga/YogaErrata.kt +39 -0
  137. package/yoga/java/com/facebook/yoga/YogaExperimentalFeature.kt +27 -0
  138. package/yoga/java/com/facebook/yoga/YogaFlexDirection.kt +31 -0
  139. package/yoga/java/com/facebook/yoga/YogaGridTrackType.kt +33 -0
  140. package/yoga/java/com/facebook/yoga/YogaGutter.kt +29 -0
  141. package/yoga/java/com/facebook/yoga/YogaJustify.kt +43 -0
  142. package/yoga/java/com/facebook/yoga/YogaLayoutType.kt +27 -0
  143. package/yoga/java/com/facebook/yoga/YogaLogLevel.kt +39 -0
  144. package/yoga/java/com/facebook/yoga/YogaLogger.kt +19 -0
  145. package/yoga/java/com/facebook/yoga/YogaMeasureFunction.kt +19 -0
  146. package/yoga/java/com/facebook/yoga/YogaMeasureMode.kt +29 -0
  147. package/yoga/java/com/facebook/yoga/YogaMeasureOutput.kt +29 -0
  148. package/yoga/java/com/facebook/yoga/YogaNative.kt +347 -0
  149. package/yoga/java/com/facebook/yoga/YogaNode.kt +254 -0
  150. package/yoga/java/com/facebook/yoga/YogaNodeFactory.kt +14 -0
  151. package/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt +762 -0
  152. package/yoga/java/com/facebook/yoga/YogaNodeJNIFinalizer.kt +33 -0
  153. package/yoga/java/com/facebook/yoga/YogaNodeType.kt +27 -0
  154. package/yoga/java/com/facebook/yoga/YogaOverflow.kt +29 -0
  155. package/yoga/java/com/facebook/yoga/YogaPositionType.kt +29 -0
  156. package/yoga/java/com/facebook/yoga/YogaProps.kt +205 -0
  157. package/yoga/java/com/facebook/yoga/YogaStyleInputs.kt +51 -0
  158. package/yoga/java/com/facebook/yoga/YogaUnit.kt +37 -0
  159. package/yoga/java/com/facebook/yoga/YogaValue.kt +66 -0
  160. package/yoga/java/com/facebook/yoga/YogaWrap.kt +29 -0
  161. package/yoga/java/com/facebook/yoga/annotations/DoNotStrip.kt +19 -0
  162. package/yoga/java/gen/com/facebook/yoga/BuildConfig.java +15 -0
  163. package/yoga/java/jni/LayoutContext.cpp +34 -0
  164. package/yoga/java/jni/LayoutContext.h +29 -0
  165. package/yoga/java/jni/ScopedGlobalRef.h +140 -0
  166. package/yoga/java/jni/ScopedLocalRef.h +141 -0
  167. package/yoga/java/jni/YGJNI.h +77 -0
  168. package/yoga/java/jni/YGJNIVanilla.cpp +1178 -0
  169. package/yoga/java/jni/YGJNIVanilla.h +12 -0
  170. package/yoga/java/jni/YGJTypesVanilla.h +52 -0
  171. package/yoga/java/jni/YogaJniException.cpp +49 -0
  172. package/yoga/java/jni/YogaJniException.h +35 -0
  173. package/yoga/java/jni/common.cpp +109 -0
  174. package/yoga/java/jni/common.h +73 -0
  175. package/yoga/java/jni/corefunctions.cpp +91 -0
  176. package/yoga/java/jni/corefunctions.h +50 -0
  177. package/yoga/java/jni/macros.h +23 -0
  178. package/yoga/java/jni/tests/corefunctionsTest.cpp +247 -0
  179. package/yoga/java/jni/yogajni.cpp +18 -0
  180. package/yoga/java/proguard-rules.pro +10 -0
  181. package/yoga/java/res/values/strings.xml +12 -0
  182. package/yoga/java/tests/com/facebook/yoga/TestParametrization.kt +29 -0
  183. package/yoga/java/tests/com/facebook/yoga/YGAlignBaselineTest.kt +117 -0
  184. package/yoga/java/tests/com/facebook/yoga/YogaExceptionTest.kt +140 -0
  185. package/yoga/java/tests/com/facebook/yoga/YogaLoggerTest.kt +77 -0
  186. package/yoga/java/tests/com/facebook/yoga/YogaNodeStylePropertiesTest.kt +1020 -0
  187. package/yoga/java/tests/com/facebook/yoga/YogaNodeTest.kt +319 -0
  188. package/yoga/java/tests/com/facebook/yoga/YogaValueTest.kt +23 -0
  189. package/yoga/java/tests/com/facebook/yoga/utils/TestUtils.kt +99 -0
  190. package/yoga/java/tests/generated/com/facebook/yoga/YGAbsolutePositionTest.java +1670 -0
  191. package/yoga/java/tests/generated/com/facebook/yoga/YGAlignContentTest.java +5440 -0
  192. package/yoga/java/tests/generated/com/facebook/yoga/YGAlignItemsTest.java +2132 -0
  193. package/yoga/java/tests/generated/com/facebook/yoga/YGAlignSelfTest.java +271 -0
  194. package/yoga/java/tests/generated/com/facebook/yoga/YGAndroidNewsFeed.java +313 -0
  195. package/yoga/java/tests/generated/com/facebook/yoga/YGAspectRatioTest.java +73 -0
  196. package/yoga/java/tests/generated/com/facebook/yoga/YGAutoTest.java +326 -0
  197. package/yoga/java/tests/generated/com/facebook/yoga/YGBorderTest.java +222 -0
  198. package/yoga/java/tests/generated/com/facebook/yoga/YGBoxSizingTest.java +2165 -0
  199. package/yoga/java/tests/generated/com/facebook/yoga/YGDimensionTest.java +122 -0
  200. package/yoga/java/tests/generated/com/facebook/yoga/YGDisplayContentsTest.java +107 -0
  201. package/yoga/java/tests/generated/com/facebook/yoga/YGDisplayTest.java +1021 -0
  202. package/yoga/java/tests/generated/com/facebook/yoga/YGFlexBasisFitContentTest.java +391 -0
  203. package/yoga/java/tests/generated/com/facebook/yoga/YGFlexDirectionTest.java +4118 -0
  204. package/yoga/java/tests/generated/com/facebook/yoga/YGFlexTest.java +630 -0
  205. package/yoga/java/tests/generated/com/facebook/yoga/YGFlexWrapTest.java +1863 -0
  206. package/yoga/java/tests/generated/com/facebook/yoga/YGGapTest.java +2988 -0
  207. package/yoga/java/tests/generated/com/facebook/yoga/YGIntrinsicSizeTest.java +926 -0
  208. package/yoga/java/tests/generated/com/facebook/yoga/YGJustifyContentTest.java +1865 -0
  209. package/yoga/java/tests/generated/com/facebook/yoga/YGMarginTest.java +1796 -0
  210. package/yoga/java/tests/generated/com/facebook/yoga/YGMinMaxDimensionTest.java +1210 -0
  211. package/yoga/java/tests/generated/com/facebook/yoga/YGPaddingTest.java +307 -0
  212. package/yoga/java/tests/generated/com/facebook/yoga/YGPercentageTest.java +1345 -0
  213. package/yoga/java/tests/generated/com/facebook/yoga/YGRoundingTest.java +1099 -0
  214. package/yoga/java/tests/generated/com/facebook/yoga/YGSizeOverflowTest.java +195 -0
  215. package/yoga/java/tests/generated/com/facebook/yoga/YGStaticPositionTest.java +5992 -0
  216. package/yoga/java/yogajni.version +13 -0
  217. package/yoga/javascript/CMakeLists.txt +59 -0
  218. package/yoga/javascript/README.md +27 -0
  219. package/yoga/javascript/babel.config.cjs +30 -0
  220. package/yoga/javascript/jest.config.js +14 -0
  221. package/yoga/javascript/jest.setup.js +12 -0
  222. package/yoga/javascript/just.config.cjs +258 -0
  223. package/yoga/javascript/package.json +52 -0
  224. package/yoga/javascript/src/generated/YGEnums.ts +249 -0
  225. package/yoga/javascript/src/index.ts +23 -0
  226. package/yoga/javascript/src/load.ts +25 -0
  227. package/yoga/javascript/src/wasm_bridge.c +155 -0
  228. package/yoga/javascript/src/wrapAssembly.ts +1025 -0
  229. package/yoga/javascript/tests/Benchmarks/YGBenchmark.test.ts +110 -0
  230. package/yoga/javascript/tests/YGAlignBaselineTest.test.ts +104 -0
  231. package/yoga/javascript/tests/YGComputedBorderTest.test.ts +25 -0
  232. package/yoga/javascript/tests/YGComputedMarginTest.test.ts +25 -0
  233. package/yoga/javascript/tests/YGComputedPaddingTest.test.ts +25 -0
  234. package/yoga/javascript/tests/YGDirtiedTest.test.ts +149 -0
  235. package/yoga/javascript/tests/YGErrataTest.test.ts +34 -0
  236. package/yoga/javascript/tests/YGFlexBasisAuto.test.ts +21 -0
  237. package/yoga/javascript/tests/YGHadOverflowTest.test.ts +110 -0
  238. package/yoga/javascript/tests/YGHasNewLayout.test.ts +81 -0
  239. package/yoga/javascript/tests/YGMeasureCacheTest.test.ts +29 -0
  240. package/yoga/javascript/tests/YGMeasureTest.test.ts +66 -0
  241. package/yoga/javascript/tests/bin/run-bench.ts +60 -0
  242. package/yoga/javascript/tests/generated/YGAbsolutePositionTest.test.ts +1531 -0
  243. package/yoga/javascript/tests/generated/YGAlignContentTest.test.ts +5181 -0
  244. package/yoga/javascript/tests/generated/YGAlignItemsTest.test.ts +2013 -0
  245. package/yoga/javascript/tests/generated/YGAlignSelfTest.test.ts +248 -0
  246. package/yoga/javascript/tests/generated/YGAndroidNewsFeed.test.ts +306 -0
  247. package/yoga/javascript/tests/generated/YGAspectRatioTest.test.ts +66 -0
  248. package/yoga/javascript/tests/generated/YGAutoTest.test.ts +303 -0
  249. package/yoga/javascript/tests/generated/YGBorderTest.test.ts +199 -0
  250. package/yoga/javascript/tests/generated/YGBoxSizingTest.test.ts +1978 -0
  251. package/yoga/javascript/tests/generated/YGDimensionTest.test.ts +111 -0
  252. package/yoga/javascript/tests/generated/YGDisplayContentsTest.test.ts +99 -0
  253. package/yoga/javascript/tests/generated/YGDisplayTest.test.ts +962 -0
  254. package/yoga/javascript/tests/generated/YGFlexBasisFitContentTest.test.ts +364 -0
  255. package/yoga/javascript/tests/generated/YGFlexDirectionTest.test.ts +3903 -0
  256. package/yoga/javascript/tests/generated/YGFlexTest.test.ts +587 -0
  257. package/yoga/javascript/tests/generated/YGFlexWrapTest.test.ts +1768 -0
  258. package/yoga/javascript/tests/generated/YGGapTest.test.ts +2857 -0
  259. package/yoga/javascript/tests/generated/YGIntrinsicSizeTest.test.ts +843 -0
  260. package/yoga/javascript/tests/generated/YGJustifyContentTest.test.ts +1750 -0
  261. package/yoga/javascript/tests/generated/YGMarginTest.test.ts +1657 -0
  262. package/yoga/javascript/tests/generated/YGMinMaxDimensionTest.test.ts +1111 -0
  263. package/yoga/javascript/tests/generated/YGPaddingTest.test.ts +276 -0
  264. package/yoga/javascript/tests/generated/YGPercentageTest.test.ts +1246 -0
  265. package/yoga/javascript/tests/generated/YGRoundingTest.test.ts +1044 -0
  266. package/yoga/javascript/tests/generated/YGSizeOverflowTest.test.ts +180 -0
  267. package/yoga/javascript/tests/generated/YGStaticPositionTest.test.ts +5741 -0
  268. package/yoga/javascript/tests/tools/MeasureCounter.ts +66 -0
  269. package/yoga/javascript/tests/tools/globals.ts +19 -0
  270. package/yoga/javascript/tests/tools/utils.ts +90 -0
  271. package/yoga/javascript/tsconfig.json +23 -0
  272. package/yoga/lib/jni/jni.h +13 -0
  273. package/yoga/lib/jni/real/jni.h +1141 -0
  274. package/yoga/lib/jsr-305/jsr305.jar +0 -0
  275. package/yoga/lib/nlohmann/json.hpp +24766 -0
  276. package/yoga/lib/soloader/soloader-0.5.1.aar +0 -0
  277. package/yoga/package.json +44 -0
  278. package/yoga/scripts/clang-format +52 -0
  279. package/yoga/scripts/clang-format.js +93 -0
  280. package/yoga/scripts/format-kotlin.js +88 -0
  281. package/yoga/scripts/format-python.js +150 -0
  282. package/yoga/scripts/format-utils.js +82 -0
  283. package/yoga/set-version.py +37 -0
  284. package/yoga/settings.gradle.kts +29 -0
  285. package/yoga/test/AssertFatalTest.cpp +70 -0
  286. package/yoga/tests/.clang-tidy +7 -0
  287. package/yoga/tests/CMakeLists.txt +35 -0
  288. package/yoga/tests/CacheTest.cpp +229 -0
  289. package/yoga/tests/EventPublisherTest.cpp +162 -0
  290. package/yoga/tests/EventsTest.cpp +362 -0
  291. package/yoga/tests/FlexGapTest.cpp +93 -0
  292. package/yoga/tests/FloatOptionalTest.cpp +214 -0
  293. package/yoga/tests/GridStyleTest.cpp +103 -0
  294. package/yoga/tests/OrdinalsTest.cpp +35 -0
  295. package/yoga/tests/SmallValueBufferTest.cpp +161 -0
  296. package/yoga/tests/StyleTest.cpp +48 -0
  297. package/yoga/tests/StyleValuePoolTest.cpp +146 -0
  298. package/yoga/tests/YGAlignBaselineTest.cpp +837 -0
  299. package/yoga/tests/YGAspectRatioTest.cpp +898 -0
  300. package/yoga/tests/YGAutoMinSizeTest.cpp +581 -0
  301. package/yoga/tests/YGBaselineFuncTest.cpp +62 -0
  302. package/yoga/tests/YGCloneNodeTest.cpp +131 -0
  303. package/yoga/tests/YGComputedMarginTest.cpp +117 -0
  304. package/yoga/tests/YGComputedPaddingTest.cpp +119 -0
  305. package/yoga/tests/YGConfigTest.cpp +239 -0
  306. package/yoga/tests/YGContentsNodeHasNewLayoutTest.cpp +190 -0
  307. package/yoga/tests/YGDefaultValuesTest.cpp +175 -0
  308. package/yoga/tests/YGDirtiedTest.cpp +110 -0
  309. package/yoga/tests/YGDirtyMarkingTest.cpp +341 -0
  310. package/yoga/tests/YGEdgeTest.cpp +161 -0
  311. package/yoga/tests/YGFirstChildMinWidthTest.cpp +133 -0
  312. package/yoga/tests/YGFlexBasisFitContentTest.cpp +241 -0
  313. package/yoga/tests/YGFlexShrinkBorderBugTest.cpp +48 -0
  314. package/yoga/tests/YGHadOverflowTest.cpp +135 -0
  315. package/yoga/tests/YGLayoutableChildrenTest.cpp +191 -0
  316. package/yoga/tests/YGMeasureCacheTest.cpp +178 -0
  317. package/yoga/tests/YGMeasureModeTest.cpp +332 -0
  318. package/yoga/tests/YGMeasureTest.cpp +1010 -0
  319. package/yoga/tests/YGNodeCallbackTest.cpp +80 -0
  320. package/yoga/tests/YGNodeChildTest.cpp +68 -0
  321. package/yoga/tests/YGPersistenceTest.cpp +291 -0
  322. package/yoga/tests/YGPersistentNodeCloningTest.cpp +214 -0
  323. package/yoga/tests/YGRelayoutTest.cpp +255 -0
  324. package/yoga/tests/YGRoundingFunctionTest.cpp +186 -0
  325. package/yoga/tests/YGRoundingMeasureFuncTest.cpp +139 -0
  326. package/yoga/tests/YGScaleChangeTest.cpp +176 -0
  327. package/yoga/tests/YGStyleTest.cpp +75 -0
  328. package/yoga/tests/YGTreeMutationTest.cpp +115 -0
  329. package/yoga/tests/YGValueTest.cpp +23 -0
  330. package/yoga/tests/YGZeroOutLayoutRecursivelyTest.cpp +37 -0
  331. package/yoga/tests/generated/YGAbsolutePositionTest.cpp +1685 -0
  332. package/yoga/tests/generated/YGAlignContentTest.cpp +5485 -0
  333. package/yoga/tests/generated/YGAlignItemsTest.cpp +2142 -0
  334. package/yoga/tests/generated/YGAlignSelfTest.cpp +257 -0
  335. package/yoga/tests/generated/YGAndroidNewsFeed.cpp +295 -0
  336. package/yoga/tests/generated/YGAspectRatioTest.cpp +55 -0
  337. package/yoga/tests/generated/YGAutoTest.cpp +312 -0
  338. package/yoga/tests/generated/YGBorderTest.cpp +208 -0
  339. package/yoga/tests/generated/YGBoxSizingTest.cpp +2192 -0
  340. package/yoga/tests/generated/YGDimensionTest.cpp +105 -0
  341. package/yoga/tests/generated/YGDisplayContentsTest.cpp +89 -0
  342. package/yoga/tests/generated/YGDisplayTest.cpp +1016 -0
  343. package/yoga/tests/generated/YGFlexBasisFitContentTest.cpp +378 -0
  344. package/yoga/tests/generated/YGFlexDirectionTest.cpp +4152 -0
  345. package/yoga/tests/generated/YGFlexTest.cpp +621 -0
  346. package/yoga/tests/generated/YGFlexWrapTest.cpp +1867 -0
  347. package/yoga/tests/generated/YGGapTest.cpp +3001 -0
  348. package/yoga/tests/generated/YGIntrinsicSizeTest.cpp +924 -0
  349. package/yoga/tests/generated/YGJustifyContentTest.cpp +1874 -0
  350. package/yoga/tests/generated/YGMarginTest.cpp +1811 -0
  351. package/yoga/tests/generated/YGMinMaxDimensionTest.cpp +1215 -0
  352. package/yoga/tests/generated/YGPaddingTest.cpp +295 -0
  353. package/yoga/tests/generated/YGPercentageTest.cpp +1350 -0
  354. package/yoga/tests/generated/YGRoundingTest.cpp +1093 -0
  355. package/yoga/tests/generated/YGSizeOverflowTest.cpp +179 -0
  356. package/yoga/tests/generated/YGStaticPositionTest.cpp +6035 -0
  357. package/yoga/tests/util/TestUtil.cpp +164 -0
  358. package/yoga/tests/util/TestUtil.h +43 -0
  359. package/yoga/unit_tests +25 -0
  360. package/yoga/unit_tests.bat +28 -0
  361. package/yoga/website/.eslintrc.cjs +26 -0
  362. package/yoga/website/README.md +41 -0
  363. package/yoga/website/babel.config.cjs +10 -0
  364. package/yoga/website/blog/2023-06-30-announcing-yoga-2.0.md +183 -0
  365. package/yoga/website/blog/2024-06-24-announcing-yoga-3.1.md +67 -0
  366. package/yoga/website/blog/2024-12-02-announcing-yoga-3.2.md +84 -0
  367. package/yoga/website/blog/authors.yml +10 -0
  368. package/yoga/website/blog/yoga-3-release/2024-03-14-announcing-yoga-3.0.md +586 -0
  369. package/yoga/website/blog/yoga-3-release/img/image1.png +0 -0
  370. package/yoga/website/blog/yoga-3-release/img/image10.png +0 -0
  371. package/yoga/website/blog/yoga-3-release/img/image11.png +0 -0
  372. package/yoga/website/blog/yoga-3-release/img/image12.png +0 -0
  373. package/yoga/website/blog/yoga-3-release/img/image13.png +0 -0
  374. package/yoga/website/blog/yoga-3-release/img/image14.png +0 -0
  375. package/yoga/website/blog/yoga-3-release/img/image15.png +0 -0
  376. package/yoga/website/blog/yoga-3-release/img/image16.png +0 -0
  377. package/yoga/website/blog/yoga-3-release/img/image17.png +0 -0
  378. package/yoga/website/blog/yoga-3-release/img/image2.png +0 -0
  379. package/yoga/website/blog/yoga-3-release/img/image3.png +0 -0
  380. package/yoga/website/blog/yoga-3-release/img/image4.png +0 -0
  381. package/yoga/website/blog/yoga-3-release/img/image5.png +0 -0
  382. package/yoga/website/blog/yoga-3-release/img/image6.png +0 -0
  383. package/yoga/website/blog/yoga-3-release/img/image7.png +0 -0
  384. package/yoga/website/blog/yoga-3-release/img/image8.png +0 -0
  385. package/yoga/website/blog/yoga-3-release/img/image9.png +0 -0
  386. package/yoga/website/docs/about-yoga.md +13 -0
  387. package/yoga/website/docs/advanced/_category_.json +4 -0
  388. package/yoga/website/docs/advanced/containing-block.md +89 -0
  389. package/yoga/website/docs/advanced/external-layout-systems.mdx +106 -0
  390. package/yoga/website/docs/advanced/incremental-layout.mdx +87 -0
  391. package/yoga/website/docs/getting-started/_category_.json +4 -0
  392. package/yoga/website/docs/getting-started/configuring-yoga.mdx +165 -0
  393. package/yoga/website/docs/getting-started/laying-out-a-tree.mdx +178 -0
  394. package/yoga/website/docs/img/config-contextual.svg +17 -0
  395. package/yoga/website/docs/img/config-per-node.svg +17 -0
  396. package/yoga/website/docs/img/config-uniform.svg +17 -0
  397. package/yoga/website/docs/img/invalidation-clean-tree.svg +17 -0
  398. package/yoga/website/docs/img/invalidation-dirtied-tree.svg +17 -0
  399. package/yoga/website/docs/img/invalidation-new-layout-tree.svg +17 -0
  400. package/yoga/website/docs/img/pixel-grid-after.png +0 -0
  401. package/yoga/website/docs/img/pixel-grid-before.png +0 -0
  402. package/yoga/website/docs/img/wireframe-example.svg +105 -0
  403. package/yoga/website/docs/styling/_category_.json +4 -0
  404. package/yoga/website/docs/styling/align-content.mdx +47 -0
  405. package/yoga/website/docs/styling/align-items-self.mdx +48 -0
  406. package/yoga/website/docs/styling/aspect-ratio.mdx +27 -0
  407. package/yoga/website/docs/styling/display.mdx +25 -0
  408. package/yoga/website/docs/styling/flex-basis-grow-shrink.mdx +65 -0
  409. package/yoga/website/docs/styling/flex-direction.mdx +37 -0
  410. package/yoga/website/docs/styling/flex-wrap.mdx +33 -0
  411. package/yoga/website/docs/styling/gap.mdx +49 -0
  412. package/yoga/website/docs/styling/index.md +48 -0
  413. package/yoga/website/docs/styling/insets.mdx +62 -0
  414. package/yoga/website/docs/styling/justify-content.mdx +43 -0
  415. package/yoga/website/docs/styling/layout-direction.mdx +34 -0
  416. package/yoga/website/docs/styling/margin-padding-border.mdx +41 -0
  417. package/yoga/website/docs/styling/min-max-width-height.mdx +52 -0
  418. package/yoga/website/docs/styling/position.mdx +37 -0
  419. package/yoga/website/docs/styling/width-height.mdx +37 -0
  420. package/yoga/website/docusaurus.config.js +113 -0
  421. package/yoga/website/package.json +43 -0
  422. package/yoga/website/sidebars.cjs +27 -0
  423. package/yoga/website/src/components/EditorToolbar.module.css +77 -0
  424. package/yoga/website/src/components/EditorToolbar.tsx +72 -0
  425. package/yoga/website/src/components/FlexStyle.ts +439 -0
  426. package/yoga/website/src/components/LayoutBox.module.css +68 -0
  427. package/yoga/website/src/components/LayoutBox.tsx +61 -0
  428. package/yoga/website/src/components/Playground.module.css +130 -0
  429. package/yoga/website/src/components/Playground.tsx +187 -0
  430. package/yoga/website/src/components/YogaViewer.tsx +128 -0
  431. package/yoga/website/src/css/custom.css +37 -0
  432. package/yoga/website/src/pages/index.module.css +34 -0
  433. package/yoga/website/src/pages/index.tsx +84 -0
  434. package/yoga/website/src/pages/markdown-page.md +7 -0
  435. package/yoga/website/src/pages/playground.module.css +11 -0
  436. package/yoga/website/src/pages/playground.tsx +56 -0
  437. package/yoga/website/static/.nojekyll +0 -0
  438. package/yoga/website/static/img/docusaurus.png +0 -0
  439. package/yoga/website/static/img/favicon.svg +17 -0
  440. package/yoga/website/static/img/link.svg +4 -0
  441. package/yoga/website/static/img/logo.svg +17 -0
  442. package/yoga/website/static/img/meta_oss.svg +1 -0
  443. package/yoga/website/static/img/opengraph.png +0 -0
  444. package/yoga/website/static/img/undraw_docusaurus_mountain.svg +171 -0
  445. package/yoga/website/static/img/undraw_docusaurus_react.svg +170 -0
  446. package/yoga/website/static/img/undraw_docusaurus_tree.svg +40 -0
  447. package/yoga/website/tsconfig.json +10 -0
  448. package/yoga/yarn.lock +11499 -0
  449. package/yoga/yoga/CMakeLists.txt +41 -0
  450. package/yoga/yoga/YGConfig.cpp +92 -0
  451. package/yoga/yoga/YGConfig.h +158 -0
  452. package/yoga/yoga/YGEnums.cpp +304 -0
  453. package/yoga/yoga/YGEnums.h +163 -0
  454. package/yoga/yoga/YGMacros.h +101 -0
  455. package/yoga/yoga/YGNode.cpp +407 -0
  456. package/yoga/yoga/YGNode.h +373 -0
  457. package/yoga/yoga/YGNodeLayout.cpp +100 -0
  458. package/yoga/yoga/YGNodeLayout.h +43 -0
  459. package/yoga/yoga/YGNodeStyle.cpp +774 -0
  460. package/yoga/yoga/YGNodeStyle.h +243 -0
  461. package/yoga/yoga/YGPixelGrid.cpp +22 -0
  462. package/yoga/yoga/YGPixelGrid.h +29 -0
  463. package/yoga/yoga/YGValue.cpp +20 -0
  464. package/yoga/yoga/YGValue.h +83 -0
  465. package/yoga/yoga/Yoga.h +21 -0
  466. package/yoga/yoga/algorithm/AbsoluteLayout.cpp +595 -0
  467. package/yoga/yoga/algorithm/AbsoluteLayout.h +41 -0
  468. package/yoga/yoga/algorithm/Align.h +83 -0
  469. package/yoga/yoga/algorithm/Baseline.cpp +78 -0
  470. package/yoga/yoga/algorithm/Baseline.h +21 -0
  471. package/yoga/yoga/algorithm/BoundAxis.h +79 -0
  472. package/yoga/yoga/algorithm/Cache.cpp +121 -0
  473. package/yoga/yoga/algorithm/Cache.h +30 -0
  474. package/yoga/yoga/algorithm/CalculateLayout.cpp +2968 -0
  475. package/yoga/yoga/algorithm/CalculateLayout.h +60 -0
  476. package/yoga/yoga/algorithm/FlexDirection.h +120 -0
  477. package/yoga/yoga/algorithm/FlexLine.cpp +124 -0
  478. package/yoga/yoga/algorithm/FlexLine.h +75 -0
  479. package/yoga/yoga/algorithm/PixelGrid.cpp +138 -0
  480. package/yoga/yoga/algorithm/PixelGrid.h +29 -0
  481. package/yoga/yoga/algorithm/SizingMode.h +73 -0
  482. package/yoga/yoga/algorithm/TrailingPosition.h +44 -0
  483. package/yoga/yoga/config/Config.cpp +135 -0
  484. package/yoga/yoga/config/Config.h +93 -0
  485. package/yoga/yoga/debug/AssertFatal.cpp +54 -0
  486. package/yoga/yoga/debug/AssertFatal.h +29 -0
  487. package/yoga/yoga/debug/Log.cpp +107 -0
  488. package/yoga/yoga/debug/Log.h +34 -0
  489. package/yoga/yoga/enums/Align.h +49 -0
  490. package/yoga/yoga/enums/BoxSizing.h +40 -0
  491. package/yoga/yoga/enums/Dimension.h +40 -0
  492. package/yoga/yoga/enums/Direction.h +41 -0
  493. package/yoga/yoga/enums/Display.h +42 -0
  494. package/yoga/yoga/enums/Edge.h +47 -0
  495. package/yoga/yoga/enums/Errata.h +43 -0
  496. package/yoga/yoga/enums/ExperimentalFeature.h +40 -0
  497. package/yoga/yoga/enums/FlexDirection.h +42 -0
  498. package/yoga/yoga/enums/GridTrackType.h +43 -0
  499. package/yoga/yoga/enums/Gutter.h +41 -0
  500. package/yoga/yoga/enums/Justify.h +48 -0
  501. package/yoga/yoga/enums/LogLevel.h +44 -0
  502. package/yoga/yoga/enums/MeasureMode.h +41 -0
  503. package/yoga/yoga/enums/NodeType.h +40 -0
  504. package/yoga/yoga/enums/Overflow.h +41 -0
  505. package/yoga/yoga/enums/PhysicalEdge.h +21 -0
  506. package/yoga/yoga/enums/PositionType.h +41 -0
  507. package/yoga/yoga/enums/Unit.h +45 -0
  508. package/yoga/yoga/enums/Wrap.h +41 -0
  509. package/yoga/yoga/enums/YogaEnums.h +84 -0
  510. package/yoga/yoga/event/event.cpp +89 -0
  511. package/yoga/yoga/event/event.h +131 -0
  512. package/yoga/yoga/module.modulemap +21 -0
  513. package/yoga/yoga/node/CachedMeasurement.h +53 -0
  514. package/yoga/yoga/node/LayoutResults.cpp +48 -0
  515. package/yoga/yoga/node/LayoutResults.h +136 -0
  516. package/yoga/yoga/node/LayoutableChildren.h +148 -0
  517. package/yoga/yoga/node/Node.cpp +509 -0
  518. package/yoga/yoga/node/Node.h +372 -0
  519. package/yoga/yoga/numeric/Comparison.h +81 -0
  520. package/yoga/yoga/numeric/FloatOptional.h +84 -0
  521. package/yoga/yoga/style/GridLine.h +53 -0
  522. package/yoga/yoga/style/GridStyle.h +80 -0
  523. package/yoga/yoga/style/GridTrack.h +63 -0
  524. package/yoga/yoga/style/SmallValueBuffer.h +133 -0
  525. package/yoga/yoga/style/Style.h +932 -0
  526. package/yoga/yoga/style/StyleLength.h +121 -0
  527. package/yoga/yoga/style/StyleSizeLength.h +152 -0
  528. package/yoga/yoga/style/StyleValueHandle.h +114 -0
  529. package/yoga/yoga/style/StyleValuePool.h +194 -0
@@ -0,0 +1,1087 @@
1
+
2
+ #include "hermes/VM/static_h.h"
3
+
4
+ #include <stdlib.h>
5
+
6
+ #include <yoga/Yoga.h>
7
+ #include <ffigen_yoga_adapters.h>
8
+
9
+
10
+ static uint32_t unit_index;
11
+ static inline SHSymbolID* get_symbols(SHUnit *);
12
+ static inline SHWritePropertyCacheEntry* get_write_prop_cache(SHUnit *);
13
+ static inline SHReadPropertyCacheEntry* get_read_prop_cache(SHUnit *);
14
+ static inline SHPrivateNameCacheEntry* get_private_name_cache(SHUnit *);
15
+ static const SHSrcLoc s_source_locations[];
16
+ static SHNativeFuncInfo s_function_info_table[];
17
+ static SHLegacyValue _0_global(SHRuntime *shr);
18
+ static SHLegacyValue _1_call_0(SHRuntime *shr);
19
+ static SHLegacyValue _2_call_1(SHRuntime *shr);
20
+ static SHLegacyValue _3_call_2(SHRuntime *shr);
21
+ static SHLegacyValue _4_call_3(SHRuntime *shr);
22
+ static SHLegacyValue _5_call_4(SHRuntime *shr);
23
+ static SHLegacyValue _6_call_5(SHRuntime *shr);
24
+ static SHLegacyValue _7_call_6(SHRuntime *shr);
25
+ static SHLegacyValue _8_call_7(SHRuntime *shr);
26
+ static SHLegacyValue _9_call_8(SHRuntime *shr);
27
+ static SHLegacyValue _10_call_9(SHRuntime *shr);
28
+ static SHLegacyValue _11_call_10(SHRuntime *shr);
29
+ static SHLegacyValue _12_call_11(SHRuntime *shr);
30
+ static SHLegacyValue _13_call_12(SHRuntime *shr);
31
+ static SHLegacyValue _14_call_13(SHRuntime *shr);
32
+ static SHLegacyValue _15_call_14(SHRuntime *shr);
33
+ static SHLegacyValue _16_call_15(SHRuntime *shr);
34
+ static SHLegacyValue _17_call_16(SHRuntime *shr);
35
+ static SHLegacyValue _18_call_17(SHRuntime *shr);
36
+ static SHLegacyValue _19_call_18(SHRuntime *shr);
37
+ static SHLegacyValue _20_call_19(SHRuntime *shr);
38
+ static SHLegacyValue _21_call_20(SHRuntime *shr);
39
+ static SHLegacyValue _22_call_21(SHRuntime *shr);
40
+ static SHLegacyValue _23_call_22(SHRuntime *shr);
41
+ static SHLegacyValue _24_call_23(SHRuntime *shr);
42
+ static SHLegacyValue _25_call_24(SHRuntime *shr);
43
+ static SHLegacyValue _26_call_25(SHRuntime *shr);
44
+ static SHLegacyValue _27_call_26(SHRuntime *shr);
45
+ static SHLegacyValue _28_call_27(SHRuntime *shr);
46
+ static SHLegacyValue _29_call_28(SHRuntime *shr);
47
+ static SHLegacyValue _30_call_29(SHRuntime *shr);
48
+ static SHLegacyValue _31_call_30(SHRuntime *shr);
49
+ static SHLegacyValue _32_call_31(SHRuntime *shr);
50
+ static SHLegacyValue _33_call_32(SHRuntime *shr);
51
+ static SHLegacyValue _34_call_33(SHRuntime *shr);
52
+ // Generated/native.ts:3:1
53
+ static SHLegacyValue _0_global(SHRuntime *shr) {
54
+ _SH_MODEL();
55
+ struct {
56
+ SHLocals head;
57
+ SHLegacyValue t0;
58
+ SHLegacyValue t1;
59
+ SHLegacyValue t2;
60
+ } locals;
61
+ _sh_check_native_stack_overflow(shr);
62
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
63
+ locals.head.count =3;
64
+ SHUnit *shUnit = shr->units[unit_index];
65
+ locals.t0 = _sh_ljs_undefined();
66
+ locals.t1 = _sh_ljs_undefined();
67
+ locals.t2 = _sh_ljs_undefined();
68
+ SHLegacyValue np0 = _sh_ljs_undefined();
69
+
70
+ L0:
71
+ ;
72
+ locals.t0 = _sh_ljs_get_global_object(shr);
73
+ locals.t1 = _sh_ljs_try_get_by_id_rjs(shr,&locals.t0, get_symbols(shUnit)[78] /*globalThis*/, get_read_prop_cache(shUnit) + 0);
74
+ locals.t0 = _sh_ljs_new_object_with_buffer(shr, shUnit, 0, 0);
75
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _1_call_0, &s_function_info_table[1], shUnit);
76
+ _sh_prstore_object(shr, &locals.t0, 0, &locals.t2);
77
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _2_call_1, &s_function_info_table[2], shUnit);
78
+ _sh_prstore_object(shr, &locals.t0, 1, &locals.t2);
79
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _3_call_2, &s_function_info_table[3], shUnit);
80
+ _sh_prstore_object(shr, &locals.t0, 2, &locals.t2);
81
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _4_call_3, &s_function_info_table[4], shUnit);
82
+ _sh_prstore_object(shr, &locals.t0, 3, &locals.t2);
83
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _5_call_4, &s_function_info_table[5], shUnit);
84
+ _sh_prstore_object(shr, &locals.t0, 4, &locals.t2);
85
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _6_call_5, &s_function_info_table[6], shUnit);
86
+ _sh_prstore_object(shr, &locals.t0, 5, &locals.t2);
87
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _7_call_6, &s_function_info_table[7], shUnit);
88
+ _sh_prstore_object(shr, &locals.t0, 6, &locals.t2);
89
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _8_call_7, &s_function_info_table[8], shUnit);
90
+ _sh_prstore_object(shr, &locals.t0, 7, &locals.t2);
91
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _9_call_8, &s_function_info_table[9], shUnit);
92
+ _sh_prstore_object(shr, &locals.t0, 8, &locals.t2);
93
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _10_call_9, &s_function_info_table[10], shUnit);
94
+ _sh_prstore_object(shr, &locals.t0, 9, &locals.t2);
95
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _11_call_10, &s_function_info_table[11], shUnit);
96
+ _sh_prstore_object(shr, &locals.t0, 10, &locals.t2);
97
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _12_call_11, &s_function_info_table[12], shUnit);
98
+ _sh_prstore_object(shr, &locals.t0, 11, &locals.t2);
99
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _13_call_12, &s_function_info_table[13], shUnit);
100
+ _sh_prstore_object(shr, &locals.t0, 12, &locals.t2);
101
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _14_call_13, &s_function_info_table[14], shUnit);
102
+ _sh_prstore_object(shr, &locals.t0, 13, &locals.t2);
103
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _15_call_14, &s_function_info_table[15], shUnit);
104
+ _sh_prstore_object(shr, &locals.t0, 14, &locals.t2);
105
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _16_call_15, &s_function_info_table[16], shUnit);
106
+ _sh_prstore_object(shr, &locals.t0, 15, &locals.t2);
107
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _17_call_16, &s_function_info_table[17], shUnit);
108
+ _sh_prstore_object(shr, &locals.t0, 16, &locals.t2);
109
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _18_call_17, &s_function_info_table[18], shUnit);
110
+ _sh_prstore_object(shr, &locals.t0, 17, &locals.t2);
111
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _19_call_18, &s_function_info_table[19], shUnit);
112
+ _sh_prstore_object(shr, &locals.t0, 18, &locals.t2);
113
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _20_call_19, &s_function_info_table[20], shUnit);
114
+ _sh_prstore_object(shr, &locals.t0, 19, &locals.t2);
115
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _21_call_20, &s_function_info_table[21], shUnit);
116
+ _sh_prstore_object(shr, &locals.t0, 20, &locals.t2);
117
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _22_call_21, &s_function_info_table[22], shUnit);
118
+ _sh_prstore_object(shr, &locals.t0, 21, &locals.t2);
119
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _23_call_22, &s_function_info_table[23], shUnit);
120
+ _sh_prstore_object(shr, &locals.t0, 22, &locals.t2);
121
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _24_call_23, &s_function_info_table[24], shUnit);
122
+ _sh_prstore_object(shr, &locals.t0, 23, &locals.t2);
123
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _25_call_24, &s_function_info_table[25], shUnit);
124
+ _sh_prstore_object(shr, &locals.t0, 24, &locals.t2);
125
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _26_call_25, &s_function_info_table[26], shUnit);
126
+ _sh_prstore_object(shr, &locals.t0, 25, &locals.t2);
127
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _27_call_26, &s_function_info_table[27], shUnit);
128
+ _sh_prstore_object(shr, &locals.t0, 26, &locals.t2);
129
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _28_call_27, &s_function_info_table[28], shUnit);
130
+ _sh_prstore_object(shr, &locals.t0, 27, &locals.t2);
131
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _29_call_28, &s_function_info_table[29], shUnit);
132
+ _sh_prstore_object(shr, &locals.t0, 28, &locals.t2);
133
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _30_call_29, &s_function_info_table[30], shUnit);
134
+ _sh_prstore_object(shr, &locals.t0, 29, &locals.t2);
135
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _31_call_30, &s_function_info_table[31], shUnit);
136
+ _sh_prstore_object(shr, &locals.t0, 30, &locals.t2);
137
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _32_call_31, &s_function_info_table[32], shUnit);
138
+ _sh_prstore_object(shr, &locals.t0, 31, &locals.t2);
139
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _33_call_32, &s_function_info_table[33], shUnit);
140
+ _sh_prstore_object(shr, &locals.t0, 32, &locals.t2);
141
+ locals.t2 = _sh_ljs_create_closure(shr, NULL, _34_call_33, &s_function_info_table[34], shUnit);
142
+ _sh_prstore_object(shr, &locals.t0, 33, &locals.t2);
143
+ _sh_ljs_put_by_id_strict_rjs(shr, shUnit, &locals.t1, get_symbols(shUnit)[79] /*yoga*/, &locals.t0, get_write_prop_cache(shUnit) + 0);
144
+ np0 = _sh_ljs_undefined();
145
+ _sh_leave(shr, &locals.head, frame);
146
+ return np0;
147
+ }
148
+ // Generated/native.ts:10:3
149
+ static SHLegacyValue _1_call_0(SHRuntime *shr) {
150
+ struct {
151
+ SHLocals head;
152
+ } locals;
153
+ _sh_check_native_stack_overflow(shr);
154
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
155
+ locals.head.count =0;
156
+ SHUnit *shUnit = shr->units[unit_index];
157
+ SHLegacyValue np0 = _sh_ljs_undefined();
158
+
159
+ L0:
160
+ ;
161
+ np0 = _sh_ljs_native_pointer_or_throw(shr, YGNodeNew());
162
+ _sh_leave(shr, &locals.head, frame);
163
+ return np0;
164
+ }
165
+ // Generated/native.ts:18:3
166
+ static SHLegacyValue _2_call_1(SHRuntime *shr) {
167
+ struct {
168
+ SHLocals head;
169
+ } locals;
170
+ _sh_check_native_stack_overflow(shr);
171
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
172
+ locals.head.count =0;
173
+ SHUnit *shUnit = shr->units[unit_index];
174
+ SHLegacyValue np0 = _sh_ljs_undefined();
175
+
176
+ L0:
177
+ ;
178
+ np0 = _sh_ljs_param(frame, 1);
179
+ YGNodeFreeRecursive(_sh_ljs_get_native_pointer(np0));
180
+ np0 = _sh_ljs_undefined();
181
+ np0 = _sh_ljs_undefined();
182
+ _sh_leave(shr, &locals.head, frame);
183
+ return np0;
184
+ }
185
+ // Generated/native.ts:26:3
186
+ static SHLegacyValue _3_call_2(SHRuntime *shr) {
187
+ struct {
188
+ SHLocals head;
189
+ } locals;
190
+ _sh_check_native_stack_overflow(shr);
191
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
192
+ locals.head.count =0;
193
+ SHUnit *shUnit = shr->units[unit_index];
194
+ SHLegacyValue np0 = _sh_ljs_undefined();
195
+ SHLegacyValue np1 = _sh_ljs_undefined();
196
+ SHLegacyValue np2 = _sh_ljs_undefined();
197
+
198
+ L0:
199
+ ;
200
+ np2 = _sh_ljs_param(frame, 3);
201
+ np1 = _sh_ljs_param(frame, 2);
202
+ np0 = _sh_ljs_param(frame, 1);
203
+ YGNodeInsertChild(_sh_ljs_get_native_pointer(np0), _sh_ljs_get_native_pointer(np1), _sh_to_uint64_double_or_throw(shr, _sh_ljs_get_double(np2)));
204
+ np0 = _sh_ljs_undefined();
205
+ np0 = _sh_ljs_undefined();
206
+ _sh_leave(shr, &locals.head, frame);
207
+ return np0;
208
+ }
209
+ // Generated/native.ts:34:3
210
+ static SHLegacyValue _4_call_3(SHRuntime *shr) {
211
+ struct {
212
+ SHLocals head;
213
+ } locals;
214
+ _sh_check_native_stack_overflow(shr);
215
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
216
+ locals.head.count =0;
217
+ SHUnit *shUnit = shr->units[unit_index];
218
+ SHLegacyValue np0 = _sh_ljs_undefined();
219
+
220
+ L0:
221
+ ;
222
+ np0 = _sh_ljs_param(frame, 1);
223
+ np0 = _sh_ljs_double(_sh_to_double_uint64_or_throw(shr, YGNodeGetChildCount(_sh_ljs_get_native_pointer(np0))));
224
+ _sh_leave(shr, &locals.head, frame);
225
+ return np0;
226
+ }
227
+ // Generated/native.ts:42:3
228
+ static SHLegacyValue _5_call_4(SHRuntime *shr) {
229
+ struct {
230
+ SHLocals head;
231
+ } locals;
232
+ _sh_check_native_stack_overflow(shr);
233
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
234
+ locals.head.count =0;
235
+ SHUnit *shUnit = shr->units[unit_index];
236
+ SHLegacyValue np0 = _sh_ljs_undefined();
237
+ SHLegacyValue np1 = _sh_ljs_undefined();
238
+
239
+ L0:
240
+ ;
241
+ np1 = _sh_ljs_param(frame, 2);
242
+ np0 = _sh_ljs_param(frame, 1);
243
+ YGNodeRemoveChild(_sh_ljs_get_native_pointer(np0), _sh_ljs_get_native_pointer(np1));
244
+ np0 = _sh_ljs_undefined();
245
+ np0 = _sh_ljs_undefined();
246
+ _sh_leave(shr, &locals.head, frame);
247
+ return np0;
248
+ }
249
+ // Generated/native.ts:50:3
250
+ static SHLegacyValue _6_call_5(SHRuntime *shr) {
251
+ struct {
252
+ SHLocals head;
253
+ } locals;
254
+ _sh_check_native_stack_overflow(shr);
255
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
256
+ locals.head.count =0;
257
+ SHUnit *shUnit = shr->units[unit_index];
258
+ SHLegacyValue np0 = _sh_ljs_undefined();
259
+ SHLegacyValue np1 = _sh_ljs_undefined();
260
+
261
+ L0:
262
+ ;
263
+ np1 = _sh_ljs_param(frame, 2);
264
+ np0 = _sh_ljs_param(frame, 1);
265
+ np0 = _sh_ljs_native_pointer_or_throw(shr, YGNodeGetChild(_sh_ljs_get_native_pointer(np0), _sh_to_uint64_double_or_throw(shr, _sh_ljs_get_double(np1))));
266
+ _sh_leave(shr, &locals.head, frame);
267
+ return np0;
268
+ }
269
+ // Generated/native.ts:58:3
270
+ static SHLegacyValue _7_call_6(SHRuntime *shr) {
271
+ struct {
272
+ SHLocals head;
273
+ } locals;
274
+ _sh_check_native_stack_overflow(shr);
275
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
276
+ locals.head.count =0;
277
+ SHUnit *shUnit = shr->units[unit_index];
278
+ SHLegacyValue np0 = _sh_ljs_undefined();
279
+ SHLegacyValue np1 = _sh_ljs_undefined();
280
+
281
+ L0:
282
+ ;
283
+ np1 = _sh_ljs_param(frame, 2);
284
+ np0 = _sh_ljs_param(frame, 1);
285
+ YGNodeStyleSetWidth(_sh_ljs_get_native_pointer(np0), (float)_sh_ljs_get_double(np1));
286
+ np0 = _sh_ljs_undefined();
287
+ np0 = _sh_ljs_undefined();
288
+ _sh_leave(shr, &locals.head, frame);
289
+ return np0;
290
+ }
291
+ // Generated/native.ts:66:3
292
+ static SHLegacyValue _8_call_7(SHRuntime *shr) {
293
+ struct {
294
+ SHLocals head;
295
+ } locals;
296
+ _sh_check_native_stack_overflow(shr);
297
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
298
+ locals.head.count =0;
299
+ SHUnit *shUnit = shr->units[unit_index];
300
+ SHLegacyValue np0 = _sh_ljs_undefined();
301
+
302
+ L0:
303
+ ;
304
+ np0 = _sh_ljs_param(frame, 1);
305
+ YGNodeStyleSetWidthAuto(_sh_ljs_get_native_pointer(np0));
306
+ np0 = _sh_ljs_undefined();
307
+ np0 = _sh_ljs_undefined();
308
+ _sh_leave(shr, &locals.head, frame);
309
+ return np0;
310
+ }
311
+ // Generated/native.ts:74:3
312
+ static SHLegacyValue _9_call_8(SHRuntime *shr) {
313
+ struct {
314
+ SHLocals head;
315
+ } locals;
316
+ _sh_check_native_stack_overflow(shr);
317
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
318
+ locals.head.count =0;
319
+ SHUnit *shUnit = shr->units[unit_index];
320
+ SHLegacyValue np0 = _sh_ljs_undefined();
321
+ SHLegacyValue np1 = _sh_ljs_undefined();
322
+
323
+ L0:
324
+ ;
325
+ np1 = _sh_ljs_param(frame, 2);
326
+ np0 = _sh_ljs_param(frame, 1);
327
+ YGNodeStyleSetHeight(_sh_ljs_get_native_pointer(np0), (float)_sh_ljs_get_double(np1));
328
+ np0 = _sh_ljs_undefined();
329
+ np0 = _sh_ljs_undefined();
330
+ _sh_leave(shr, &locals.head, frame);
331
+ return np0;
332
+ }
333
+ // Generated/native.ts:82:3
334
+ static SHLegacyValue _10_call_9(SHRuntime *shr) {
335
+ struct {
336
+ SHLocals head;
337
+ } locals;
338
+ _sh_check_native_stack_overflow(shr);
339
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
340
+ locals.head.count =0;
341
+ SHUnit *shUnit = shr->units[unit_index];
342
+ SHLegacyValue np0 = _sh_ljs_undefined();
343
+
344
+ L0:
345
+ ;
346
+ np0 = _sh_ljs_param(frame, 1);
347
+ YGNodeStyleSetHeightAuto(_sh_ljs_get_native_pointer(np0));
348
+ np0 = _sh_ljs_undefined();
349
+ np0 = _sh_ljs_undefined();
350
+ _sh_leave(shr, &locals.head, frame);
351
+ return np0;
352
+ }
353
+ // Generated/native.ts:90:3
354
+ static SHLegacyValue _11_call_10(SHRuntime *shr) {
355
+ struct {
356
+ SHLocals head;
357
+ } locals;
358
+ _sh_check_native_stack_overflow(shr);
359
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
360
+ locals.head.count =0;
361
+ SHUnit *shUnit = shr->units[unit_index];
362
+ SHLegacyValue np0 = _sh_ljs_undefined();
363
+ SHLegacyValue np1 = _sh_ljs_undefined();
364
+
365
+ L0:
366
+ ;
367
+ np1 = _sh_ljs_param(frame, 2);
368
+ np0 = _sh_ljs_param(frame, 1);
369
+ YGNodeStyleSetFlex(_sh_ljs_get_native_pointer(np0), (float)_sh_ljs_get_double(np1));
370
+ np0 = _sh_ljs_undefined();
371
+ np0 = _sh_ljs_undefined();
372
+ _sh_leave(shr, &locals.head, frame);
373
+ return np0;
374
+ }
375
+ // Generated/native.ts:98:3
376
+ static SHLegacyValue _12_call_11(SHRuntime *shr) {
377
+ struct {
378
+ SHLocals head;
379
+ } locals;
380
+ _sh_check_native_stack_overflow(shr);
381
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
382
+ locals.head.count =0;
383
+ SHUnit *shUnit = shr->units[unit_index];
384
+ SHLegacyValue np0 = _sh_ljs_undefined();
385
+ SHLegacyValue np1 = _sh_ljs_undefined();
386
+
387
+ L0:
388
+ ;
389
+ np1 = _sh_ljs_param(frame, 2);
390
+ np0 = _sh_ljs_param(frame, 1);
391
+ YGNodeStyleSetFlexShrink(_sh_ljs_get_native_pointer(np0), (float)_sh_ljs_get_double(np1));
392
+ np0 = _sh_ljs_undefined();
393
+ np0 = _sh_ljs_undefined();
394
+ _sh_leave(shr, &locals.head, frame);
395
+ return np0;
396
+ }
397
+ // Generated/native.ts:106:3
398
+ static SHLegacyValue _13_call_12(SHRuntime *shr) {
399
+ struct {
400
+ SHLocals head;
401
+ } locals;
402
+ _sh_check_native_stack_overflow(shr);
403
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
404
+ locals.head.count =0;
405
+ SHUnit *shUnit = shr->units[unit_index];
406
+ SHLegacyValue np0 = _sh_ljs_undefined();
407
+ SHLegacyValue np1 = _sh_ljs_undefined();
408
+
409
+ L0:
410
+ ;
411
+ np1 = _sh_ljs_param(frame, 2);
412
+ np0 = _sh_ljs_param(frame, 1);
413
+ YGNodeStyleSetFlexGrow(_sh_ljs_get_native_pointer(np0), (float)_sh_ljs_get_double(np1));
414
+ np0 = _sh_ljs_undefined();
415
+ np0 = _sh_ljs_undefined();
416
+ _sh_leave(shr, &locals.head, frame);
417
+ return np0;
418
+ }
419
+ // Generated/native.ts:114:3
420
+ static SHLegacyValue _14_call_13(SHRuntime *shr) {
421
+ struct {
422
+ SHLocals head;
423
+ } locals;
424
+ _sh_check_native_stack_overflow(shr);
425
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
426
+ locals.head.count =0;
427
+ SHUnit *shUnit = shr->units[unit_index];
428
+ SHLegacyValue np0 = _sh_ljs_undefined();
429
+ SHLegacyValue np1 = _sh_ljs_undefined();
430
+
431
+ L0:
432
+ ;
433
+ np1 = _sh_ljs_param(frame, 2);
434
+ np0 = _sh_ljs_param(frame, 1);
435
+ ffigen_yoga_YGNodeStyleSetOverflow(_sh_ljs_get_native_pointer(np0), (int32_t)_sh_to_int32_double(_sh_ljs_get_double(np1)));
436
+ np0 = _sh_ljs_undefined();
437
+ np0 = _sh_ljs_undefined();
438
+ _sh_leave(shr, &locals.head, frame);
439
+ return np0;
440
+ }
441
+ // Generated/native.ts:122:3
442
+ static SHLegacyValue _15_call_14(SHRuntime *shr) {
443
+ struct {
444
+ SHLocals head;
445
+ } locals;
446
+ _sh_check_native_stack_overflow(shr);
447
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
448
+ locals.head.count =0;
449
+ SHUnit *shUnit = shr->units[unit_index];
450
+ SHLegacyValue np0 = _sh_ljs_undefined();
451
+ SHLegacyValue np1 = _sh_ljs_undefined();
452
+ SHLegacyValue np2 = _sh_ljs_undefined();
453
+
454
+ L0:
455
+ ;
456
+ np2 = _sh_ljs_param(frame, 3);
457
+ np1 = _sh_ljs_param(frame, 2);
458
+ np0 = _sh_ljs_param(frame, 1);
459
+ ffigen_yoga_YGNodeStyleSetMargin(_sh_ljs_get_native_pointer(np0), (int32_t)_sh_to_int32_double(_sh_ljs_get_double(np1)), (float)_sh_ljs_get_double(np2));
460
+ np0 = _sh_ljs_undefined();
461
+ np0 = _sh_ljs_undefined();
462
+ _sh_leave(shr, &locals.head, frame);
463
+ return np0;
464
+ }
465
+ // Generated/native.ts:130:3
466
+ static SHLegacyValue _16_call_15(SHRuntime *shr) {
467
+ struct {
468
+ SHLocals head;
469
+ } locals;
470
+ _sh_check_native_stack_overflow(shr);
471
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
472
+ locals.head.count =0;
473
+ SHUnit *shUnit = shr->units[unit_index];
474
+ SHLegacyValue np0 = _sh_ljs_undefined();
475
+ SHLegacyValue np1 = _sh_ljs_undefined();
476
+
477
+ L0:
478
+ ;
479
+ np1 = _sh_ljs_param(frame, 2);
480
+ np0 = _sh_ljs_param(frame, 1);
481
+ ffigen_yoga_YGNodeStyleSetMarginAuto(_sh_ljs_get_native_pointer(np0), (int32_t)_sh_to_int32_double(_sh_ljs_get_double(np1)));
482
+ np0 = _sh_ljs_undefined();
483
+ np0 = _sh_ljs_undefined();
484
+ _sh_leave(shr, &locals.head, frame);
485
+ return np0;
486
+ }
487
+ // Generated/native.ts:138:3
488
+ static SHLegacyValue _17_call_16(SHRuntime *shr) {
489
+ struct {
490
+ SHLocals head;
491
+ } locals;
492
+ _sh_check_native_stack_overflow(shr);
493
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
494
+ locals.head.count =0;
495
+ SHUnit *shUnit = shr->units[unit_index];
496
+ SHLegacyValue np0 = _sh_ljs_undefined();
497
+ SHLegacyValue np1 = _sh_ljs_undefined();
498
+ SHLegacyValue np2 = _sh_ljs_undefined();
499
+
500
+ L0:
501
+ ;
502
+ np2 = _sh_ljs_param(frame, 3);
503
+ np1 = _sh_ljs_param(frame, 2);
504
+ np0 = _sh_ljs_param(frame, 1);
505
+ ffigen_yoga_YGNodeStyleSetPadding(_sh_ljs_get_native_pointer(np0), (int32_t)_sh_to_int32_double(_sh_ljs_get_double(np1)), (float)_sh_ljs_get_double(np2));
506
+ np0 = _sh_ljs_undefined();
507
+ np0 = _sh_ljs_undefined();
508
+ _sh_leave(shr, &locals.head, frame);
509
+ return np0;
510
+ }
511
+ // Generated/native.ts:146:3
512
+ static SHLegacyValue _18_call_17(SHRuntime *shr) {
513
+ struct {
514
+ SHLocals head;
515
+ } locals;
516
+ _sh_check_native_stack_overflow(shr);
517
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
518
+ locals.head.count =0;
519
+ SHUnit *shUnit = shr->units[unit_index];
520
+ SHLegacyValue np0 = _sh_ljs_undefined();
521
+ SHLegacyValue np1 = _sh_ljs_undefined();
522
+
523
+ L0:
524
+ ;
525
+ np1 = _sh_ljs_param(frame, 2);
526
+ np0 = _sh_ljs_param(frame, 1);
527
+ ffigen_yoga_YGNodeStyleSetJustifyContent(_sh_ljs_get_native_pointer(np0), (int32_t)_sh_to_int32_double(_sh_ljs_get_double(np1)));
528
+ np0 = _sh_ljs_undefined();
529
+ np0 = _sh_ljs_undefined();
530
+ _sh_leave(shr, &locals.head, frame);
531
+ return np0;
532
+ }
533
+ // Generated/native.ts:154:3
534
+ static SHLegacyValue _19_call_18(SHRuntime *shr) {
535
+ struct {
536
+ SHLocals head;
537
+ } locals;
538
+ _sh_check_native_stack_overflow(shr);
539
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
540
+ locals.head.count =0;
541
+ SHUnit *shUnit = shr->units[unit_index];
542
+ SHLegacyValue np0 = _sh_ljs_undefined();
543
+ SHLegacyValue np1 = _sh_ljs_undefined();
544
+
545
+ L0:
546
+ ;
547
+ np1 = _sh_ljs_param(frame, 2);
548
+ np0 = _sh_ljs_param(frame, 1);
549
+ ffigen_yoga_YGNodeStyleSetAlignItems(_sh_ljs_get_native_pointer(np0), (int32_t)_sh_to_int32_double(_sh_ljs_get_double(np1)));
550
+ np0 = _sh_ljs_undefined();
551
+ np0 = _sh_ljs_undefined();
552
+ _sh_leave(shr, &locals.head, frame);
553
+ return np0;
554
+ }
555
+ // Generated/native.ts:162:3
556
+ static SHLegacyValue _20_call_19(SHRuntime *shr) {
557
+ struct {
558
+ SHLocals head;
559
+ } locals;
560
+ _sh_check_native_stack_overflow(shr);
561
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
562
+ locals.head.count =0;
563
+ SHUnit *shUnit = shr->units[unit_index];
564
+ SHLegacyValue np0 = _sh_ljs_undefined();
565
+ SHLegacyValue np1 = _sh_ljs_undefined();
566
+
567
+ L0:
568
+ ;
569
+ np1 = _sh_ljs_param(frame, 2);
570
+ np0 = _sh_ljs_param(frame, 1);
571
+ ffigen_yoga_YGNodeStyleSetAlignSelf(_sh_ljs_get_native_pointer(np0), (int32_t)_sh_to_int32_double(_sh_ljs_get_double(np1)));
572
+ np0 = _sh_ljs_undefined();
573
+ np0 = _sh_ljs_undefined();
574
+ _sh_leave(shr, &locals.head, frame);
575
+ return np0;
576
+ }
577
+ // Generated/native.ts:170:3
578
+ static SHLegacyValue _21_call_20(SHRuntime *shr) {
579
+ struct {
580
+ SHLocals head;
581
+ } locals;
582
+ _sh_check_native_stack_overflow(shr);
583
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
584
+ locals.head.count =0;
585
+ SHUnit *shUnit = shr->units[unit_index];
586
+ SHLegacyValue np0 = _sh_ljs_undefined();
587
+ SHLegacyValue np1 = _sh_ljs_undefined();
588
+
589
+ L0:
590
+ ;
591
+ np1 = _sh_ljs_param(frame, 2);
592
+ np0 = _sh_ljs_param(frame, 1);
593
+ ffigen_yoga_YGNodeStyleSetFlexDirection(_sh_ljs_get_native_pointer(np0), (int32_t)_sh_to_int32_double(_sh_ljs_get_double(np1)));
594
+ np0 = _sh_ljs_undefined();
595
+ np0 = _sh_ljs_undefined();
596
+ _sh_leave(shr, &locals.head, frame);
597
+ return np0;
598
+ }
599
+ // Generated/native.ts:178:3
600
+ static SHLegacyValue _22_call_21(SHRuntime *shr) {
601
+ struct {
602
+ SHLocals head;
603
+ } locals;
604
+ _sh_check_native_stack_overflow(shr);
605
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
606
+ locals.head.count =0;
607
+ SHUnit *shUnit = shr->units[unit_index];
608
+ SHLegacyValue np0 = _sh_ljs_undefined();
609
+ SHLegacyValue np1 = _sh_ljs_undefined();
610
+ SHLegacyValue np2 = _sh_ljs_undefined();
611
+
612
+ L0:
613
+ ;
614
+ np2 = _sh_ljs_param(frame, 3);
615
+ np1 = _sh_ljs_param(frame, 2);
616
+ np0 = _sh_ljs_param(frame, 1);
617
+ ffigen_yoga_YGNodeStyleSetBorder(_sh_ljs_get_native_pointer(np0), (int32_t)_sh_to_int32_double(_sh_ljs_get_double(np1)), (float)_sh_ljs_get_double(np2));
618
+ np0 = _sh_ljs_undefined();
619
+ np0 = _sh_ljs_undefined();
620
+ _sh_leave(shr, &locals.head, frame);
621
+ return np0;
622
+ }
623
+ // Generated/native.ts:186:3
624
+ static SHLegacyValue _23_call_22(SHRuntime *shr) {
625
+ struct {
626
+ SHLocals head;
627
+ } locals;
628
+ _sh_check_native_stack_overflow(shr);
629
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
630
+ locals.head.count =0;
631
+ SHUnit *shUnit = shr->units[unit_index];
632
+ SHLegacyValue np0 = _sh_ljs_undefined();
633
+ SHLegacyValue np1 = _sh_ljs_undefined();
634
+ SHLegacyValue np2 = _sh_ljs_undefined();
635
+ SHLegacyValue np3 = _sh_ljs_undefined();
636
+
637
+ L0:
638
+ ;
639
+ np3 = _sh_ljs_param(frame, 4);
640
+ np2 = _sh_ljs_param(frame, 3);
641
+ np1 = _sh_ljs_param(frame, 2);
642
+ np0 = _sh_ljs_param(frame, 1);
643
+ ffigen_yoga_YGNodeCalculateLayout(_sh_ljs_get_native_pointer(np0), (float)_sh_ljs_get_double(np1), (float)_sh_ljs_get_double(np2), (int32_t)_sh_to_int32_double(_sh_ljs_get_double(np3)));
644
+ np0 = _sh_ljs_undefined();
645
+ np0 = _sh_ljs_undefined();
646
+ _sh_leave(shr, &locals.head, frame);
647
+ return np0;
648
+ }
649
+ // Generated/native.ts:194:3
650
+ static SHLegacyValue _24_call_23(SHRuntime *shr) {
651
+ struct {
652
+ SHLocals head;
653
+ } locals;
654
+ _sh_check_native_stack_overflow(shr);
655
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
656
+ locals.head.count =0;
657
+ SHUnit *shUnit = shr->units[unit_index];
658
+ SHLegacyValue np0 = _sh_ljs_undefined();
659
+ SHLegacyValue np1 = _sh_ljs_undefined();
660
+
661
+ L0:
662
+ ;
663
+ np0 = _sh_ljs_param(frame, 1);
664
+ np1 = _sh_ljs_double((double)(bool)YGNodeGetHasNewLayout(_sh_ljs_get_native_pointer(np0)));
665
+ np0 = _sh_ljs_double(0);
666
+ np0 = _sh_ljs_bool(_sh_ljs_get_double(np1) != _sh_ljs_get_double(np0));
667
+ _sh_leave(shr, &locals.head, frame);
668
+ return np0;
669
+ }
670
+ // Generated/native.ts:203:3
671
+ static SHLegacyValue _25_call_24(SHRuntime *shr) {
672
+ struct {
673
+ SHLocals head;
674
+ } locals;
675
+ _sh_check_native_stack_overflow(shr);
676
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
677
+ locals.head.count =0;
678
+ SHUnit *shUnit = shr->units[unit_index];
679
+ SHLegacyValue np0 = _sh_ljs_undefined();
680
+ SHLegacyValue np1 = _sh_ljs_undefined();
681
+
682
+ L0:
683
+ ;
684
+ np0 = _sh_ljs_param(frame, 2);
685
+ np1 = _sh_ljs_double(0);
686
+ if(_sh_ljs_get_bool(np0)) goto L1;
687
+ goto L2;
688
+
689
+ L1:
690
+ ;
691
+ np1 = _sh_ljs_double(1);
692
+ goto L2;
693
+ L2:
694
+ ;
695
+ // PhiInst
696
+ np0 = _sh_ljs_param(frame, 1);
697
+ YGNodeSetHasNewLayout(_sh_ljs_get_native_pointer(np0), (bool)_sh_to_int32_double(_sh_ljs_get_double(np1)));
698
+ np0 = _sh_ljs_undefined();
699
+ np0 = _sh_ljs_undefined();
700
+ _sh_leave(shr, &locals.head, frame);
701
+ return np0;
702
+ }
703
+ // Generated/native.ts:212:3
704
+ static SHLegacyValue _26_call_25(SHRuntime *shr) {
705
+ struct {
706
+ SHLocals head;
707
+ } locals;
708
+ _sh_check_native_stack_overflow(shr);
709
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
710
+ locals.head.count =0;
711
+ SHUnit *shUnit = shr->units[unit_index];
712
+ SHLegacyValue np0 = _sh_ljs_undefined();
713
+
714
+ L0:
715
+ ;
716
+ np0 = _sh_ljs_param(frame, 1);
717
+ np0 = _sh_ljs_untrusted_double(YGNodeLayoutGetWidth(_sh_ljs_get_native_pointer(np0)));
718
+ _sh_leave(shr, &locals.head, frame);
719
+ return np0;
720
+ }
721
+ // Generated/native.ts:220:3
722
+ static SHLegacyValue _27_call_26(SHRuntime *shr) {
723
+ struct {
724
+ SHLocals head;
725
+ } locals;
726
+ _sh_check_native_stack_overflow(shr);
727
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
728
+ locals.head.count =0;
729
+ SHUnit *shUnit = shr->units[unit_index];
730
+ SHLegacyValue np0 = _sh_ljs_undefined();
731
+
732
+ L0:
733
+ ;
734
+ np0 = _sh_ljs_param(frame, 1);
735
+ np0 = _sh_ljs_untrusted_double(YGNodeLayoutGetHeight(_sh_ljs_get_native_pointer(np0)));
736
+ _sh_leave(shr, &locals.head, frame);
737
+ return np0;
738
+ }
739
+ // Generated/native.ts:228:3
740
+ static SHLegacyValue _28_call_27(SHRuntime *shr) {
741
+ struct {
742
+ SHLocals head;
743
+ } locals;
744
+ _sh_check_native_stack_overflow(shr);
745
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
746
+ locals.head.count =0;
747
+ SHUnit *shUnit = shr->units[unit_index];
748
+ SHLegacyValue np0 = _sh_ljs_undefined();
749
+
750
+ L0:
751
+ ;
752
+ np0 = _sh_ljs_param(frame, 1);
753
+ np0 = _sh_ljs_untrusted_double(YGNodeLayoutGetLeft(_sh_ljs_get_native_pointer(np0)));
754
+ _sh_leave(shr, &locals.head, frame);
755
+ return np0;
756
+ }
757
+ // Generated/native.ts:236:3
758
+ static SHLegacyValue _29_call_28(SHRuntime *shr) {
759
+ struct {
760
+ SHLocals head;
761
+ } locals;
762
+ _sh_check_native_stack_overflow(shr);
763
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
764
+ locals.head.count =0;
765
+ SHUnit *shUnit = shr->units[unit_index];
766
+ SHLegacyValue np0 = _sh_ljs_undefined();
767
+
768
+ L0:
769
+ ;
770
+ np0 = _sh_ljs_param(frame, 1);
771
+ np0 = _sh_ljs_untrusted_double(YGNodeLayoutGetTop(_sh_ljs_get_native_pointer(np0)));
772
+ _sh_leave(shr, &locals.head, frame);
773
+ return np0;
774
+ }
775
+ // Generated/native.ts:244:3
776
+ static SHLegacyValue _30_call_29(SHRuntime *shr) {
777
+ struct {
778
+ SHLocals head;
779
+ } locals;
780
+ _sh_check_native_stack_overflow(shr);
781
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
782
+ locals.head.count =0;
783
+ SHUnit *shUnit = shr->units[unit_index];
784
+ SHLegacyValue np0 = _sh_ljs_undefined();
785
+ SHLegacyValue np1 = _sh_ljs_undefined();
786
+
787
+ L0:
788
+ ;
789
+ np0 = _sh_ljs_param(frame, 2);
790
+ np1 = _sh_ljs_double(0);
791
+ if(_sh_ljs_get_bool(np0)) goto L1;
792
+ goto L2;
793
+
794
+ L1:
795
+ ;
796
+ np1 = _sh_ljs_double(1);
797
+ goto L2;
798
+ L2:
799
+ ;
800
+ // PhiInst
801
+ np0 = _sh_ljs_param(frame, 1);
802
+ YGNodeSetIsReferenceBaseline(_sh_ljs_get_native_pointer(np0), (bool)_sh_to_int32_double(_sh_ljs_get_double(np1)));
803
+ np0 = _sh_ljs_undefined();
804
+ np0 = _sh_ljs_undefined();
805
+ _sh_leave(shr, &locals.head, frame);
806
+ return np0;
807
+ }
808
+ // Generated/native.ts:253:3
809
+ static SHLegacyValue _31_call_30(SHRuntime *shr) {
810
+ struct {
811
+ SHLocals head;
812
+ } locals;
813
+ _sh_check_native_stack_overflow(shr);
814
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
815
+ locals.head.count =0;
816
+ SHUnit *shUnit = shr->units[unit_index];
817
+ SHLegacyValue np0 = _sh_ljs_undefined();
818
+ SHLegacyValue np1 = _sh_ljs_undefined();
819
+
820
+ L0:
821
+ ;
822
+ np0 = _sh_ljs_param(frame, 1);
823
+ np1 = _sh_ljs_double((double)(bool)YGNodeIsReferenceBaseline(_sh_ljs_get_native_pointer(np0)));
824
+ np0 = _sh_ljs_double(0);
825
+ np0 = _sh_ljs_bool(_sh_ljs_get_double(np1) != _sh_ljs_get_double(np0));
826
+ _sh_leave(shr, &locals.head, frame);
827
+ return np0;
828
+ }
829
+ // Generated/native.ts:262:3
830
+ static SHLegacyValue _32_call_31(SHRuntime *shr) {
831
+ struct {
832
+ SHLocals head;
833
+ } locals;
834
+ _sh_check_native_stack_overflow(shr);
835
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
836
+ locals.head.count =0;
837
+ SHUnit *shUnit = shr->units[unit_index];
838
+ SHLegacyValue np0 = _sh_ljs_undefined();
839
+
840
+ L0:
841
+ ;
842
+ np0 = _sh_ljs_param(frame, 1);
843
+ np0 = _sh_ljs_native_pointer_or_throw(shr, YGNodeGetOwner(_sh_ljs_get_native_pointer(np0)));
844
+ _sh_leave(shr, &locals.head, frame);
845
+ return np0;
846
+ }
847
+ // Generated/native.ts:270:3
848
+ static SHLegacyValue _33_call_32(SHRuntime *shr) {
849
+ struct {
850
+ SHLocals head;
851
+ } locals;
852
+ _sh_check_native_stack_overflow(shr);
853
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
854
+ locals.head.count =0;
855
+ SHUnit *shUnit = shr->units[unit_index];
856
+ SHLegacyValue np0 = _sh_ljs_undefined();
857
+ SHLegacyValue np1 = _sh_ljs_undefined();
858
+
859
+ L0:
860
+ ;
861
+ np1 = _sh_ljs_param(frame, 2);
862
+ np0 = _sh_ljs_param(frame, 1);
863
+ ffigen_yoga_YGNodeStyleSetPositionType(_sh_ljs_get_native_pointer(np0), (int32_t)_sh_to_int32_double(_sh_ljs_get_double(np1)));
864
+ np0 = _sh_ljs_undefined();
865
+ np0 = _sh_ljs_undefined();
866
+ _sh_leave(shr, &locals.head, frame);
867
+ return np0;
868
+ }
869
+ // Generated/native.ts:278:3
870
+ static SHLegacyValue _34_call_33(SHRuntime *shr) {
871
+ struct {
872
+ SHLocals head;
873
+ } locals;
874
+ _sh_check_native_stack_overflow(shr);
875
+ SHLegacyValue *frame = _sh_enter(shr, &locals.head, 1);
876
+ locals.head.count =0;
877
+ SHUnit *shUnit = shr->units[unit_index];
878
+ SHLegacyValue np0 = _sh_ljs_undefined();
879
+ SHLegacyValue np1 = _sh_ljs_undefined();
880
+ SHLegacyValue np2 = _sh_ljs_undefined();
881
+
882
+ L0:
883
+ ;
884
+ np2 = _sh_ljs_param(frame, 3);
885
+ np1 = _sh_ljs_param(frame, 2);
886
+ np0 = _sh_ljs_param(frame, 1);
887
+ ffigen_yoga_YGNodeStyleSetPosition(_sh_ljs_get_native_pointer(np0), (int32_t)_sh_to_int32_double(_sh_ljs_get_double(np1)), (float)_sh_ljs_get_double(np2));
888
+ np0 = _sh_ljs_undefined();
889
+ np0 = _sh_ljs_undefined();
890
+ _sh_leave(shr, &locals.head, frame);
891
+ return np0;
892
+ }
893
+ static unsigned char s_literal_val_buffer[310] = {240,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,};
894
+ static unsigned char s_obj_key_buffer[156] = {208,77,0,0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10,0,11,0,12,0,13,0,14,0,15,0,16,0,17,0,18,0,19,0,20,0,21,0,22,0,23,0,24,0,25,0,26,0,27,0,28,0,29,0,30,0,31,0,32,0,33,0,34,0,35,0,36,0,37,0,38,0,39,0,40,0,41,0,42,0,43,0,44,0,45,0,46,0,47,0,48,0,49,0,50,0,51,0,52,0,53,0,54,0,55,0,56,0,57,0,58,0,59,0,60,0,61,0,62,0,63,0,64,0,65,0,66,0,67,0,68,0,69,0,70,0,71,0,72,0,73,0,74,0,75,0,76,0,};
895
+ static const SHShapeTableEntry s_obj_shape_table[] = {
896
+ { .key_buffer_offset = 0, .num_props = 77 },
897
+ };
898
+
899
+ static const SHSrcLoc s_source_locations[] = {
900
+ { .filename_idx = 77, .line = 0, .column = 0 },
901
+ };
902
+
903
+ static SHNativeFuncInfo s_function_info_table[] = {
904
+ { .name_index = 80, .arg_count = 0, .prohibit_invoke = 2, .kind = 0 },
905
+ { .name_index = 81, .arg_count = 0, .prohibit_invoke = 2, .kind = 0 },
906
+ { .name_index = 82, .arg_count = 1, .prohibit_invoke = 2, .kind = 0 },
907
+ { .name_index = 83, .arg_count = 3, .prohibit_invoke = 2, .kind = 0 },
908
+ { .name_index = 84, .arg_count = 1, .prohibit_invoke = 2, .kind = 0 },
909
+ { .name_index = 85, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
910
+ { .name_index = 86, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
911
+ { .name_index = 87, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
912
+ { .name_index = 88, .arg_count = 1, .prohibit_invoke = 2, .kind = 0 },
913
+ { .name_index = 89, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
914
+ { .name_index = 90, .arg_count = 1, .prohibit_invoke = 2, .kind = 0 },
915
+ { .name_index = 91, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
916
+ { .name_index = 92, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
917
+ { .name_index = 93, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
918
+ { .name_index = 94, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
919
+ { .name_index = 95, .arg_count = 3, .prohibit_invoke = 2, .kind = 0 },
920
+ { .name_index = 96, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
921
+ { .name_index = 97, .arg_count = 3, .prohibit_invoke = 2, .kind = 0 },
922
+ { .name_index = 98, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
923
+ { .name_index = 99, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
924
+ { .name_index = 100, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
925
+ { .name_index = 101, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
926
+ { .name_index = 102, .arg_count = 3, .prohibit_invoke = 2, .kind = 0 },
927
+ { .name_index = 103, .arg_count = 4, .prohibit_invoke = 2, .kind = 0 },
928
+ { .name_index = 104, .arg_count = 1, .prohibit_invoke = 2, .kind = 0 },
929
+ { .name_index = 105, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
930
+ { .name_index = 106, .arg_count = 1, .prohibit_invoke = 2, .kind = 0 },
931
+ { .name_index = 107, .arg_count = 1, .prohibit_invoke = 2, .kind = 0 },
932
+ { .name_index = 108, .arg_count = 1, .prohibit_invoke = 2, .kind = 0 },
933
+ { .name_index = 109, .arg_count = 1, .prohibit_invoke = 2, .kind = 0 },
934
+ { .name_index = 110, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
935
+ { .name_index = 111, .arg_count = 1, .prohibit_invoke = 2, .kind = 0 },
936
+ { .name_index = 112, .arg_count = 1, .prohibit_invoke = 2, .kind = 0 },
937
+ { .name_index = 113, .arg_count = 2, .prohibit_invoke = 2, .kind = 0 },
938
+ { .name_index = 114, .arg_count = 3, .prohibit_invoke = 2, .kind = 0 },
939
+ };
940
+ static const char s_ascii_pool[] = {
941
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'N', 'e', 'w', '\0',
942
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'F', 'r', 'e', 'e', 'R', 'e', 'c', 'u', 'r', 's', 'i', 'v', 'e', '\0',
943
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'I', 'n', 's', 'e', 'r', 't', 'C', 'h', 'i', 'l', 'd', '\0',
944
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'G', 'e', 't', 'C', 'h', 'i', 'l', 'd', 'C', 'o', 'u', 'n', 't', '\0',
945
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'R', 'e', 'm', 'o', 'v', 'e', 'C', 'h', 'i', 'l', 'd', '\0',
946
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'G', 'e', 't', 'C', 'h', 'i', 'l', 'd', '\0',
947
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'W', 'i', 'd', 't', 'h', '\0',
948
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'W', 'i', 'd', 't', 'h', 'A', 'u', 't', 'o', '\0',
949
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'H', 'e', 'i', 'g', 'h', 't', '\0',
950
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'H', 'e', 'i', 'g', 'h', 't', 'A', 'u', 't', 'o', '\0',
951
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'F', 'l', 'e', 'x', '\0',
952
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'F', 'l', 'e', 'x', 'S', 'h', 'r', 'i', 'n', 'k', '\0',
953
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'F', 'l', 'e', 'x', 'G', 'r', 'o', 'w', '\0',
954
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'O', 'v', 'e', 'r', 'f', 'l', 'o', 'w', '\0',
955
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'M', 'a', 'r', 'g', 'i', 'n', '\0',
956
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'M', 'a', 'r', 'g', 'i', 'n', 'A', 'u', 't', 'o', '\0',
957
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'P', 'a', 'd', 'd', 'i', 'n', 'g', '\0',
958
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'J', 'u', 's', 't', 'i', 'f', 'y', 'C', 'o', 'n', 't', 'e', 'n', 't', '\0',
959
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'A', 'l', 'i', 'g', 'n', 'I', 't', 'e', 'm', 's', '\0',
960
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'A', 'l', 'i', 'g', 'n', 'S', 'e', 'l', 'f', '\0',
961
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'F', 'l', 'e', 'x', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', '\0',
962
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'B', 'o', 'r', 'd', 'e', 'r', '\0',
963
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'C', 'a', 'l', 'c', 'u', 'l', 'a', 't', 'e', 'L', 'a', 'y', 'o', 'u', 't', '\0',
964
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'G', 'e', 't', 'H', 'a', 's', 'N', 'e', 'w', 'L', 'a', 'y', 'o', 'u', 't', '\0',
965
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 'e', 't', 'H', 'a', 's', 'N', 'e', 'w', 'L', 'a', 'y', 'o', 'u', 't', '\0',
966
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'L', 'a', 'y', 'o', 'u', 't', 'G', 'e', 't', 'W', 'i', 'd', 't', 'h', '\0',
967
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'L', 'a', 'y', 'o', 'u', 't', 'G', 'e', 't', 'H', 'e', 'i', 'g', 'h', 't', '\0',
968
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'L', 'a', 'y', 'o', 'u', 't', 'G', 'e', 't', 'L', 'e', 'f', 't', '\0',
969
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'L', 'a', 'y', 'o', 'u', 't', 'G', 'e', 't', 'T', 'o', 'p', '\0',
970
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 'e', 't', 'I', 's', 'R', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 'B', 'a', 's', 'e', 'l', 'i', 'n', 'e', '\0',
971
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'I', 's', 'R', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 'B', 'a', 's', 'e', 'l', 'i', 'n', 'e', '\0',
972
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'G', 'e', 't', 'O', 'w', 'n', 'e', 'r', '\0',
973
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 'T', 'y', 'p', 'e', '\0',
974
+ 'Y', 'G', 'N', 'o', 'd', 'e', 'S', 't', 'y', 'l', 'e', 'S', 'e', 't', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', '\0',
975
+ 'Y', 'G', 'O', 'v', 'e', 'r', 'f', 'l', 'o', 'w', 'V', 'i', 's', 'i', 'b', 'l', 'e', '\0',
976
+ 'Y', 'G', 'O', 'v', 'e', 'r', 'f', 'l', 'o', 'w', 'H', 'i', 'd', 'd', 'e', 'n', '\0',
977
+ 'Y', 'G', 'O', 'v', 'e', 'r', 'f', 'l', 'o', 'w', 'S', 'c', 'r', 'o', 'l', 'l', '\0',
978
+ 'Y', 'G', 'E', 'd', 'g', 'e', 'L', 'e', 'f', 't', '\0',
979
+ 'Y', 'G', 'E', 'd', 'g', 'e', 'T', 'o', 'p', '\0',
980
+ 'Y', 'G', 'E', 'd', 'g', 'e', 'R', 'i', 'g', 'h', 't', '\0',
981
+ 'Y', 'G', 'E', 'd', 'g', 'e', 'B', 'o', 't', 't', 'o', 'm', '\0',
982
+ 'Y', 'G', 'E', 'd', 'g', 'e', 'S', 't', 'a', 'r', 't', '\0',
983
+ 'Y', 'G', 'E', 'd', 'g', 'e', 'E', 'n', 'd', '\0',
984
+ 'Y', 'G', 'E', 'd', 'g', 'e', 'H', 'o', 'r', 'i', 'z', 'o', 'n', 't', 'a', 'l', '\0',
985
+ 'Y', 'G', 'E', 'd', 'g', 'e', 'V', 'e', 'r', 't', 'i', 'c', 'a', 'l', '\0',
986
+ 'Y', 'G', 'E', 'd', 'g', 'e', 'A', 'l', 'l', '\0',
987
+ 'Y', 'G', 'J', 'u', 's', 't', 'i', 'f', 'y', 'A', 'u', 't', 'o', '\0',
988
+ 'Y', 'G', 'J', 'u', 's', 't', 'i', 'f', 'y', 'F', 'l', 'e', 'x', 'S', 't', 'a', 'r', 't', '\0',
989
+ 'Y', 'G', 'J', 'u', 's', 't', 'i', 'f', 'y', 'C', 'e', 'n', 't', 'e', 'r', '\0',
990
+ 'Y', 'G', 'J', 'u', 's', 't', 'i', 'f', 'y', 'F', 'l', 'e', 'x', 'E', 'n', 'd', '\0',
991
+ 'Y', 'G', 'J', 'u', 's', 't', 'i', 'f', 'y', 'S', 'p', 'a', 'c', 'e', 'B', 'e', 't', 'w', 'e', 'e', 'n', '\0',
992
+ 'Y', 'G', 'J', 'u', 's', 't', 'i', 'f', 'y', 'S', 'p', 'a', 'c', 'e', 'A', 'r', 'o', 'u', 'n', 'd', '\0',
993
+ 'Y', 'G', 'J', 'u', 's', 't', 'i', 'f', 'y', 'S', 'p', 'a', 'c', 'e', 'E', 'v', 'e', 'n', 'l', 'y', '\0',
994
+ 'Y', 'G', 'J', 'u', 's', 't', 'i', 'f', 'y', 'S', 't', 'r', 'e', 't', 'c', 'h', '\0',
995
+ 'Y', 'G', 'J', 'u', 's', 't', 'i', 'f', 'y', 'S', 't', 'a', 'r', 't', '\0',
996
+ 'Y', 'G', 'J', 'u', 's', 't', 'i', 'f', 'y', 'E', 'n', 'd', '\0',
997
+ 'Y', 'G', 'A', 'l', 'i', 'g', 'n', 'A', 'u', 't', 'o', '\0',
998
+ 'Y', 'G', 'A', 'l', 'i', 'g', 'n', 'F', 'l', 'e', 'x', 'S', 't', 'a', 'r', 't', '\0',
999
+ 'Y', 'G', 'A', 'l', 'i', 'g', 'n', 'C', 'e', 'n', 't', 'e', 'r', '\0',
1000
+ 'Y', 'G', 'A', 'l', 'i', 'g', 'n', 'F', 'l', 'e', 'x', 'E', 'n', 'd', '\0',
1001
+ 'Y', 'G', 'A', 'l', 'i', 'g', 'n', 'S', 't', 'r', 'e', 't', 'c', 'h', '\0',
1002
+ 'Y', 'G', 'A', 'l', 'i', 'g', 'n', 'B', 'a', 's', 'e', 'l', 'i', 'n', 'e', '\0',
1003
+ 'Y', 'G', 'A', 'l', 'i', 'g', 'n', 'S', 'p', 'a', 'c', 'e', 'B', 'e', 't', 'w', 'e', 'e', 'n', '\0',
1004
+ 'Y', 'G', 'A', 'l', 'i', 'g', 'n', 'S', 'p', 'a', 'c', 'e', 'A', 'r', 'o', 'u', 'n', 'd', '\0',
1005
+ 'Y', 'G', 'A', 'l', 'i', 'g', 'n', 'S', 'p', 'a', 'c', 'e', 'E', 'v', 'e', 'n', 'l', 'y', '\0',
1006
+ 'Y', 'G', 'A', 'l', 'i', 'g', 'n', 'S', 't', 'a', 'r', 't', '\0',
1007
+ 'Y', 'G', 'A', 'l', 'i', 'g', 'n', 'E', 'n', 'd', '\0',
1008
+ 'Y', 'G', 'F', 'l', 'e', 'x', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'C', 'o', 'l', 'u', 'm', 'n', '\0',
1009
+ 'Y', 'G', 'F', 'l', 'e', 'x', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'C', 'o', 'l', 'u', 'm', 'n', 'R', 'e', 'v', 'e', 'r', 's', 'e', '\0',
1010
+ 'Y', 'G', 'F', 'l', 'e', 'x', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'R', 'o', 'w', '\0',
1011
+ 'Y', 'G', 'F', 'l', 'e', 'x', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'R', 'o', 'w', 'R', 'e', 'v', 'e', 'r', 's', 'e', '\0',
1012
+ 'Y', 'G', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'I', 'n', 'h', 'e', 'r', 'i', 't', '\0',
1013
+ 'Y', 'G', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'L', 'T', 'R', '\0',
1014
+ 'Y', 'G', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'R', 'T', 'L', '\0',
1015
+ 'Y', 'G', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 'T', 'y', 'p', 'e', 'S', 't', 'a', 't', 'i', 'c', '\0',
1016
+ 'Y', 'G', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 'T', 'y', 'p', 'e', 'R', 'e', 'l', 'a', 't', 'i', 'v', 'e', '\0',
1017
+ 'Y', 'G', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 'T', 'y', 'p', 'e', 'A', 'b', 's', 'o', 'l', 'u', 't', 'e', '\0',
1018
+ '\0',
1019
+ 'g', 'l', 'o', 'b', 'a', 'l', 'T', 'h', 'i', 's', '\0',
1020
+ 'y', 'o', 'g', 'a', '\0',
1021
+ 'g', 'l', 'o', 'b', 'a', 'l', '\0',
1022
+ 'c', 'a', 'l', 'l', '_', '0', '\0',
1023
+ 'c', 'a', 'l', 'l', '_', '1', '\0',
1024
+ 'c', 'a', 'l', 'l', '_', '2', '\0',
1025
+ 'c', 'a', 'l', 'l', '_', '3', '\0',
1026
+ 'c', 'a', 'l', 'l', '_', '4', '\0',
1027
+ 'c', 'a', 'l', 'l', '_', '5', '\0',
1028
+ 'c', 'a', 'l', 'l', '_', '6', '\0',
1029
+ 'c', 'a', 'l', 'l', '_', '7', '\0',
1030
+ 'c', 'a', 'l', 'l', '_', '8', '\0',
1031
+ 'c', 'a', 'l', 'l', '_', '9', '\0',
1032
+ 'c', 'a', 'l', 'l', '_', '1', '0', '\0',
1033
+ 'c', 'a', 'l', 'l', '_', '1', '1', '\0',
1034
+ 'c', 'a', 'l', 'l', '_', '1', '2', '\0',
1035
+ 'c', 'a', 'l', 'l', '_', '1', '3', '\0',
1036
+ 'c', 'a', 'l', 'l', '_', '1', '4', '\0',
1037
+ 'c', 'a', 'l', 'l', '_', '1', '5', '\0',
1038
+ 'c', 'a', 'l', 'l', '_', '1', '6', '\0',
1039
+ 'c', 'a', 'l', 'l', '_', '1', '7', '\0',
1040
+ 'c', 'a', 'l', 'l', '_', '1', '8', '\0',
1041
+ 'c', 'a', 'l', 'l', '_', '1', '9', '\0',
1042
+ 'c', 'a', 'l', 'l', '_', '2', '0', '\0',
1043
+ 'c', 'a', 'l', 'l', '_', '2', '1', '\0',
1044
+ 'c', 'a', 'l', 'l', '_', '2', '2', '\0',
1045
+ 'c', 'a', 'l', 'l', '_', '2', '3', '\0',
1046
+ 'c', 'a', 'l', 'l', '_', '2', '4', '\0',
1047
+ 'c', 'a', 'l', 'l', '_', '2', '5', '\0',
1048
+ 'c', 'a', 'l', 'l', '_', '2', '6', '\0',
1049
+ 'c', 'a', 'l', 'l', '_', '2', '7', '\0',
1050
+ 'c', 'a', 'l', 'l', '_', '2', '8', '\0',
1051
+ 'c', 'a', 'l', 'l', '_', '2', '9', '\0',
1052
+ 'c', 'a', 'l', 'l', '_', '3', '0', '\0',
1053
+ 'c', 'a', 'l', 'l', '_', '3', '1', '\0',
1054
+ 'c', 'a', 'l', 'l', '_', '3', '2', '\0',
1055
+ 'c', 'a', 'l', 'l', '_', '3', '3', '\0',
1056
+ };
1057
+ static const char16_t s_u16_pool[] = {
1058
+ };
1059
+ static const uint32_t s_strings[] = {0,9,2811728970,10,19,1353276296,30,17,781421224,48,19,779943180,68,17,2187927618,86,14,2302172033,101,19,2476209604,121,23,683718388,145,20,425657010,166,24,2636716553,191,18,202944853,210,24,1853169051,235,22,3559419914,258,22,2266265966,281,20,2581408117,302,24,2425181850,327,21,950518459,349,28,3437110449,378,24,3480175900,403,23,3254898680,427,27,1359157166,455,20,3375429078,476,21,4213081591,498,21,3606202440,520,21,3120420113,542,20,1644763108,563,21,348134991,585,19,2156871111,605,18,2114269519,624,28,2405108628,653,25,1569555548,679,14,124570310,694,26,174341141,721,22,2757657168,744,17,872060618,762,16,690124901,779,16,2119774073,796,10,1311668438,807,9,1162616859,817,11,1021354037,829,12,3191934101,842,11,276021814,854,9,1324203792,864,16,1518182085,881,14,2173397559,896,9,1122842486,906,13,912080155,920,18,3496722288,939,15,159024786,955,16,842932080,972,21,3258094658,994,20,653823094,1015,20,2353495813,1036,16,2990982286,1053,14,136956765,1068,12,1007712525,1081,11,3949044911,1093,16,4064823126,1110,13,330934669,1124,14,3033071021,1139,14,4135751597,1154,15,2264172577,1170,19,3544962926,1190,18,160369061,1209,18,3776085993,1228,12,393259670,1241,10,3404994504,1252,21,1829559043,1274,28,1221078259,1303,18,3695874959,1322,25,3122469146,1348,18,1398179256,1367,14,518187130,1382,14,2508957191,1397,20,253874523,1418,22,1191175759,1441,22,477669188,1464,0,0,1465,10,4077459857,1476,4,3840822292,1481,6,615793799,1488,6,3288097073,1495,6,3288096192,1502,6,3288095187,1509,6,3288094178,1516,6,3288093165,1523,6,3288092060,1530,6,3288091023,1537,6,3288090046,1544,6,3288089001,1551,6,3288087640,1558,7,3080834439,1566,7,3080843638,1574,7,3080844645,1582,7,3080845652,1590,7,3080846659,1598,7,3080839474,1606,7,3080840481,1614,7,3080841488,1622,7,3080842511,1630,7,3080818942,1638,7,3081893787,1646,7,3081894828,1654,7,3081895869,1662,7,3081888718,1670,7,3081889759,1678,7,3081890784,1686,7,3081891825,1694,7,3081834498,1702,7,3081835539,1710,7,3081836580,1718,7,3078737002,1726,7,3078746267,1734,7,3078747276,1742,7,3078748349,};
1060
+ #define CREATE_THIS_UNIT sh_export_yoga
1061
+ struct UnitData {
1062
+ SHUnit unit;
1063
+ SHSymbolID symbol_data[115];
1064
+ SHWritePropertyCacheEntry write_prop_cache_data[1];
1065
+ SHReadPropertyCacheEntry read_prop_cache_data[1];
1066
+ SHPrivateNameCacheEntry private_name_cache_data[0];
1067
+ SHCompressedPointer object_literal_class_cache[1];
1068
+ };
1069
+ SHUnit *CREATE_THIS_UNIT(void) {
1070
+ struct UnitData *unit_data = calloc(sizeof(struct UnitData), 1);
1071
+ *unit_data = (struct UnitData){.unit = {.index = &unit_index,.num_symbols =115, .num_write_prop_cache_entries = 1, .num_read_prop_cache_entries = 1, .ascii_pool = s_ascii_pool, .u16_pool = s_u16_pool,.strings = s_strings, .symbols = unit_data->symbol_data,.write_prop_cache = unit_data->write_prop_cache_data,.read_prop_cache = unit_data->read_prop_cache_data, .private_name_cache = unit_data->private_name_cache_data, .obj_key_buffer = s_obj_key_buffer, .obj_key_buffer_size = 156, .literal_val_buffer = s_literal_val_buffer, .literal_val_buffer_size = 310, .obj_shape_table = s_obj_shape_table, .obj_shape_table_count = 1, .object_literal_class_cache = unit_data->object_literal_class_cache, .source_locations = s_source_locations, .source_locations_size = 1, .unit_main = _0_global, .unit_main_info = &s_function_info_table[0], .unit_name = "sh_compiled" }};
1072
+ return (SHUnit *)unit_data;
1073
+ }
1074
+
1075
+ SHSymbolID *get_symbols(SHUnit *unit) {
1076
+ return ((struct UnitData *)unit)->symbol_data;
1077
+ }
1078
+
1079
+ SHWritePropertyCacheEntry *get_write_prop_cache(SHUnit *unit) {
1080
+ return ((struct UnitData *)unit)->write_prop_cache_data;
1081
+ }
1082
+ SHReadPropertyCacheEntry *get_read_prop_cache(SHUnit *unit) {
1083
+ return ((struct UnitData *)unit)->read_prop_cache_data;
1084
+ }
1085
+ SHPrivateNameCacheEntry *get_private_name_cache(SHUnit *unit) {
1086
+ return ((struct UnitData *)unit)->private_name_cache_data;
1087
+ }