| 2f684ba1 | 22-Oct-2024 |
Saúl Cabrera <[email protected]> |
winch: Implement Fuel-Based Interruption (#9472)
* winch: Implement Fuel-Based Interruption
Closes: https://github.com/bytecodealliance/wasmtime/issues/8090
This commit introduces the initial impl
winch: Implement Fuel-Based Interruption (#9472)
* winch: Implement Fuel-Based Interruption
Closes: https://github.com/bytecodealliance/wasmtime/issues/8090
This commit introduces the initial implementation of fuel-based interruption in Winch.
To maintain consistency with existing fuel semantics, this implementation closely follows the Wasmtime/Cranelift approach, with the following exception:
* Local Fuel Cache: Given Winch's emphasis on compilation speed, this implementation does not optimize for minimizing loads and stores. As a result, checking and incrementing fuel currently requires explicit loads and stores. Future optimizations may be considered to improve this aspect.
This commit also includes a small refactoring in the visitor, which introduces more generic "visitor hook" which enable handling the invariants that need to happen before and after emitting machine code for each Wasm operator.
* Use the vmruntime limits directly
* Remove unsupported fuel warning
show more ...
|