Commit 093b520
Further refactor
* Further refactor `TrampolineCompiler` for the wasm ABI
This is a follow-up to #11932 where the `TrampolineCompiler` type is
further specialized to just working with the wasm ABI instead of trying
to multiplex two ABIs now that the array ABI is handled by calling the
wasm ABI. This involved purging the `self.abi` field and updating all
callers as appropriate.
This then performed some small refactoring to use `TrampolineCompiler`
for compiler intrinsics. Unsafe intrinsics also now have the same
strategy of calling the wasm ABI trampoline when compiling for the array
ABI. This should ensure that all entry trampolines are going through the
same function.
* Refactor short-circuit in inlining
* Update crates/wasmtime/src/compile.rs
Co-authored-by: Joel Dice <joel.dice@fermyon.com>
---------
Co-authored-by: Joel Dice <joel.dice@fermyon.com>TrampolineCompiler for the wasm ABI (#11939)1 parent 23b9f3b commit 093b520
6 files changed
Lines changed: 214 additions & 319 deletions
File tree
- crates
- cranelift/src
- compiler
- environ/src
- component
- wasmtime/src
- winch/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 39 | + | |
| 40 | + | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
363 | 362 | | |
364 | 363 | | |
365 | 364 | | |
366 | | - | |
367 | | - | |
| 365 | + | |
368 | 366 | | |
369 | 367 | | |
370 | 368 | | |
| |||
1231 | 1229 | | |
1232 | 1230 | | |
1233 | 1231 | | |
1234 | | - | |
1235 | | - | |
| 1232 | + | |
1236 | 1233 | | |
1237 | 1234 | | |
1238 | 1235 | | |
1239 | 1236 | | |
1240 | 1237 | | |
1241 | 1238 | | |
1242 | | - | |
1243 | | - | |
1244 | 1239 | | |
1245 | 1240 | | |
1246 | | - | |
| 1241 | + | |
1247 | 1242 | | |
1248 | 1243 | | |
1249 | 1244 | | |
| |||
1261 | 1256 | | |
1262 | 1257 | | |
1263 | 1258 | | |
1264 | | - | |
| 1259 | + | |
1265 | 1260 | | |
1266 | 1261 | | |
1267 | 1262 | | |
| |||
1340 | 1335 | | |
1341 | 1336 | | |
1342 | 1337 | | |
1343 | | - | |
| 1338 | + | |
1344 | 1339 | | |
1345 | 1340 | | |
1346 | 1341 | | |
| |||
0 commit comments