Commit 0ae393b
committed
Make
Every caller of `expose_gc_ref_to_wasm` except for one does this weird dance
where they get the raw representation of the GC ref before giving up ownership
of it to the `expose_gc_ref_to_wasm` call, and then do something with the raw GC
ref (like return it to Wasm or whatever).
This small refactoring boxes up that dance inside `expose_gc_ref_to_wasm` so
that callers don't have to do it themselves anymore. Makes things that much more
concise and harder to mess up.GcStore::expose_gc_ref_to_wasm return the raw GC ref1 parent 8357599 commit 0ae393b
File tree
5 files changed
+17
-21
lines changed- crates/wasmtime/src/runtime
- gc/enabled
- vm
5 files changed
+17
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
334 | | - | |
| 333 | + | |
335 | 334 | | |
336 | 335 | | |
337 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
507 | | - | |
| 506 | + | |
508 | 507 | | |
509 | 508 | | |
510 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
971 | | - | |
972 | | - | |
973 | | - | |
| 971 | + | |
974 | 972 | | |
975 | 973 | | |
976 | 974 | | |
| |||
1758 | 1756 | | |
1759 | 1757 | | |
1760 | 1758 | | |
1761 | | - | |
1762 | | - | |
1763 | | - | |
| 1759 | + | |
1764 | 1760 | | |
1765 | 1761 | | |
1766 | 1762 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
141 | 147 | | |
| 148 | + | |
142 | 149 | | |
143 | 150 | | |
144 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
| 463 | + | |
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
470 | | - | |
| 469 | + | |
471 | 470 | | |
472 | 471 | | |
473 | 472 | | |
| |||
529 | 528 | | |
530 | 529 | | |
531 | 530 | | |
532 | | - | |
533 | | - | |
534 | | - | |
| 531 | + | |
535 | 532 | | |
536 | 533 | | |
537 | 534 | | |
| |||
669 | 666 | | |
670 | 667 | | |
671 | 668 | | |
672 | | - | |
673 | | - | |
| 669 | + | |
674 | 670 | | |
675 | 671 | | |
676 | 672 | | |
| |||
839 | 835 | | |
840 | 836 | | |
841 | 837 | | |
842 | | - | |
843 | | - | |
| 838 | + | |
844 | 839 | | |
845 | 840 | | |
846 | 841 | | |
| |||
0 commit comments