Repository navigation
Commit 60e51ff
committed
Kotlin-compose: update to Compose 1.13.0-beta01 and Kotlin 2.4.20
Build the Compose Multiplatform benchmarks from upstream master (1574503571,
which includes JetBrains/compose-multiplatform#5787 passing
-Xwasm-use-new-exception-proposal to the Wasm linkTask) instead of the
JetStream 3.0 hotfix branch (ok/jetstream3_hotfix, 84dad4d3f6), overriding
compose.version to 1.13.0-beta01. This moves Kotlin from 2.2.20-Beta2 to
2.4.20 (stable), Compose from 1.8.2 to 1.13.0-beta01 (which includes the PR
#3411 fix for per-frame JobCancellationException/Error stack allocation in
RectManager and PR #3269/#3484 Skia wrapper reuse fixes), and Skiko from a
custom 0.9.4.3 build to 0.156.0, while emitting standard WebAssembly exnref
(try_table/throw_ref) with zero legacy try/catch instructions.
Compiler option added in compiler-options.patch (both on compile and
KotlinJsIrLink tasks):
- -Xwasm-kclass-fqn=false: Works around KT-91066, where Kotlin 2.3+'s
KClassImpl.hashCode() allocates and hashes "$packageName.$typeName" on
every call (triggered on every Compose modifier node lookup).
Removed workarounds:
- The hotfix branch and its custom Skiko build.
- use-beta-toolchain.patch: master uses a stable Kotlin (2.4.20).
- jstag-workaround.patch: Safari's WebAssembly.JSTag fixes have shipped.
- hook-print.patch: Kotlin's glue logs through console, and benchmark.js
now silences console.log and console.warn unless verbose is set.
- The skipFunMain global in benchmark.js, which nothing reads.
Kept, rebased: empty-main-function.patch and
skiko-disable-instantiate.patch (updated for Skiko 0.156.0's
awaitSkikoCore). Also rewrite static imports in Kotlin 2.4's
compose-benchmarks-benchmarks.import-object.mjs via sed in build.sh,
instantiate compose-benchmarks-benchmarks.wasm directly in benchmark.js
(replacing compose-benchmarks-benchmarks.uninstantiated.mjs), and disable
window.caches in benchmark.js so Compose 1.12+'s ResourceWebCache uses the
in-memory preload fetch polyfill in browsers just as in JS shells.
TODOs once upstream updates ship:
- Update CMP_REV to a newer compose-multiplatform commit once Compose
1.13.0 is stable (~mid-December 2026) and drop the explicit
-Pcompose.version=1.13.0-beta01 override in build.sh.
- Remove compiler-options.patch (-Xwasm-kclass-fqn=false) once KT-91066 is
fixed and backported.
Part of #277.1 parent 5fb9b49 commit 60e51ff
15 files changed
Lines changed: 1763 additions & 9829 deletions
File tree
- workloads/Kotlin-compose-wasm
- build
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2564 | 2564 | | |
2565 | 2565 | | |
2566 | 2566 | | |
2567 | | - | |
| 2567 | + | |
2568 | 2568 | | |
2569 | 2569 | | |
2570 | 2570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
26 | 36 | | |
27 | 37 | | |
28 | 38 | | |
| |||
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
36 | 74 | | |
37 | 75 | | |
38 | 76 | | |
| |||
48 | 86 | | |
49 | 87 | | |
50 | 88 | | |
| 89 | + | |
51 | 90 | | |
52 | 91 | | |
53 | 92 | | |
54 | | - | |
| 93 | + | |
| 94 | + | |
55 | 95 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 96 | + | |
60 | 97 | | |
61 | 98 | | |
62 | 99 | | |
63 | 100 | | |
64 | 101 | | |
65 | 102 | | |
66 | 103 | | |
67 | | - | |
| 104 | + | |
68 | 105 | | |
69 | | - | |
70 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
71 | 114 | | |
72 | 115 | | |
73 | 116 | | |
| |||
92 | 135 | | |
93 | 136 | | |
94 | 137 | | |
95 | | - | |
96 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
97 | 158 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
104 | 165 | | |
105 | 166 | | |
106 | | - | |
107 | | - | |
| 167 | + | |
| 168 | + | |
108 | 169 | | |
109 | 170 | | |
110 | 171 | | |
| |||
124 | 185 | | |
125 | 186 | | |
126 | 187 | | |
127 | | - | |
128 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
129 | 191 | | |
130 | 192 | | |
131 | 193 | | |
| |||
134 | 196 | | |
135 | 197 | | |
136 | 198 | | |
137 | | - | |
138 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
139 | 214 | | |
140 | 215 | | |
141 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
| 20 | + | |
18 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
23 | | - | |
24 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | | - | |
| 34 | + | |
27 | 35 | | |
28 | | - | |
| 36 | + | |
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
40 | 54 | | |
41 | 55 | | |
42 | 56 | | |
| |||
0 commit comments