Commit 3d25cd9
[BridgeJS] Pass String parameters unretained as (address, length) (swiftwasm#688)
* pass unretained strings as tuple
* Generalize lowering parameters with borrowing scope
* factored out decodeString global
* formatting
* format (with Swift 6.2)
---------
Co-authored-by: Yuta Saito <yuta@goodnotes.com>1 parent bc05d2a commit 3d25cd9Copy full SHA for 3d25cd9
59 files changed
+1,000-880Lines changed: 1000 additions & 880 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- Benchmarks/Sources/Generated
- Examples/PlayBridgeJS/Sources/PlayBridgeJS/Generated
- Plugins/BridgeJS
- Sources
- BridgeJSCore
- BridgeJSLink
- Tests/BridgeJSToolTests/__Snapshots__
- BridgeJSCodegenTests
- BridgeJSLinkTests
- Sources/JavaScriptKit
- Tests/BridgeJSRuntimeTests/Generated
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Benchmarks/Sources/Generated/BridgeJS.swift
Copy file name to clipboardExpand all lines: Benchmarks/Sources/Generated/BridgeJS.swift+8-7Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1750 | 1750 | |
1751 | 1751 | |
1752 | 1752 | |
1753 | | - |
| 1753 | + |
1754 | 1754 | |
1755 | | - |
| 1755 | + |
1756 | 1756 | |
1757 | 1757 | |
1758 | 1758 | |
1759 | | - |
1760 | | - |
| 1759 | + |
| 1760 | + |
1761 | 1761 | |
1762 | 1762 | |
1763 | 1763 | |
1764 | | - |
1765 | | - |
1766 | | - |
| 1764 | + |
| 1765 | + |
| 1766 | + |
| 1767 | + |
1767 | 1768 | |
1768 | 1769 | |
1769 | 1770 | |
|
Collapse file
Examples/PlayBridgeJS/Sources/PlayBridgeJS/Generated/BridgeJS.swift
Copy file name to clipboardExpand all lines: Examples/PlayBridgeJS/Sources/PlayBridgeJS/Generated/BridgeJS.swift+9-6Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
249 | 249 | |
250 | 250 | |
251 | 251 | |
252 | | - |
| 252 | + |
253 | 253 | |
254 | | - |
| 254 | + |
255 | 255 | |
256 | 256 | |
257 | 257 | |
258 | | - |
259 | | - |
| 258 | + |
| 259 | + |
260 | 260 | |
261 | 261 | |
262 | 262 | |
263 | 263 | |
264 | | - |
265 | | - |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
266 | 269 | |
267 | 270 | |
268 | 271 | |
|
Collapse file
Plugins/BridgeJS/Sources/BridgeJSCore/ClosureCodegen.swift
Copy file name to clipboardExpand all lines: Plugins/BridgeJS/Sources/BridgeJSCore/ClosureCodegen.swift+4-3Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | | - |
| 29 | + |
30 | 30 | |
31 | 31 | |
| 32 | + |
32 | 33 | |
33 | 34 | |
34 | 35 | |
| ||
41 | 42 | |
42 | 43 | |
43 | 44 | |
44 | | - |
45 | | - |
| 45 | + |
| 46 | + |
46 | 47 | |
47 | 48 | |
48 | 49 | |
|
Collapse file
Plugins/BridgeJS/Sources/BridgeJSCore/ExportSwift.swift
Copy file name to clipboardExpand all lines: Plugins/BridgeJS/Sources/BridgeJSCore/ExportSwift.swift+11-8Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1177 | 1177 | |
1178 | 1178 | |
1179 | 1179 | |
1180 | | - |
| 1180 | + |
1181 | 1181 | |
1182 | 1182 | |
| 1183 | + |
1183 | 1184 | |
1184 | 1185 | |
1185 | 1186 | |
1186 | 1187 | |
1187 | 1188 | |
1188 | 1189 | |
1189 | | - |
1190 | | - |
| 1190 | + |
| 1191 | + |
1191 | 1192 | |
1192 | 1193 | |
1193 | 1194 | |
| ||
1275 | 1276 | |
1276 | 1277 | |
1277 | 1278 | |
1278 | | - |
| 1279 | + |
1279 | 1280 | |
1280 | 1281 | |
| 1282 | + |
1281 | 1283 | |
1282 | 1284 | |
1283 | 1285 | |
1284 | | - |
1285 | | - |
| 1286 | + |
| 1287 | + |
1286 | 1288 | |
1287 | 1289 | |
1288 | 1290 | |
| ||
1307 | 1309 | |
1308 | 1310 | |
1309 | 1311 | |
1310 | | - |
| 1312 | + |
1311 | 1313 | |
1312 | 1314 | |
| 1315 | + |
1313 | 1316 | |
1314 | 1317 | |
1315 | 1318 | |
1316 | 1319 | |
1317 | | - |
| 1320 | + |
1318 | 1321 | |
1319 | 1322 | |
1320 | 1323 | |
|
0 commit comments