Commit 9f81f22
authored
Inch towards making tables safer (#11212)
This is a small step towards #11179 which starts off by making
`vm::Instance::get_defined_table` a safe function. That required
updating one location which required both a `&mut Table` and a
`&mut GcStore` at the same time with a new helper on the store. More of
these sorts of helpers are likely going to be necessary but IMO it's a
small price to pay for safety.1 parent ab76f64 commit 9f81f22
File tree
3 files changed
+25
-13
lines changed- crates/wasmtime/src/runtime
- vm
- instance
3 files changed
+25
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1296 | 1296 | | |
1297 | 1297 | | |
1298 | 1298 | | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
1299 | 1313 | | |
1300 | 1314 | | |
1301 | 1315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1263 | 1263 | | |
1264 | 1264 | | |
1265 | 1265 | | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
| 1266 | + | |
| 1267 | + | |
1270 | 1268 | | |
1271 | 1269 | | |
1272 | 1270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | 616 | | |
624 | 617 | | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
625 | 621 | | |
626 | | - | |
627 | 622 | | |
628 | 623 | | |
629 | 624 | | |
630 | 625 | | |
631 | 626 | | |
632 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
633 | 631 | | |
634 | | - | |
635 | 632 | | |
636 | 633 | | |
637 | 634 | | |
638 | 635 | | |
639 | 636 | | |
640 | 637 | | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| |||
0 commit comments