Commit a0d5346
authored
Lift/lower refactors inspired by
In reading over #12216 I found a few related but also somewhat
orthogonal refactors that I wanted to implement, and thus this commit.
Changes here are:
* Handling pointer pairs for lists/maps/strings is now more uniform with
a single set of functions doing the lift/lower to flat/memory. Less
"FIXME 4311" spread throughout effectively.
* Conditional defines and organization of the `HashMap`-related impls
were tweaked, for example impls on `HashMap` are now unconditional as
well as `TryHashMap`. Some internals were refactored to in theory
reduce complexity, but this is also subjective.
* Lifting a `map<K, V>` now consumes fuel, a recent change, to ensure
that resource exhaustion in the host is limited.map<K, V> (#12753)1 parent a8fc10c commit a0d5346
3 files changed
Lines changed: 168 additions & 321 deletions
File tree
- crates
- environ/src/collections
- wasmtime/src/runtime/component
- func
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
0 commit comments