alexcrichton opened PR #9796 from alexcrichton:pulley-debug
to bytecodealliance:main
:
This commit adds a
debug.rs
to Pulley to print out the instruction being executed and the state of all registers between instructions. This is turned off by default and does not have a runtime or environment-based configuration value. Instead changing this requires changing source code for now. This enables the interpreter loop to unconditionally use this "debugger" where it'll compile away to nothing in release/benchmarking situations.This commit additionally adds this support to the
tail_loop
module and fixes a few issues there such as it accidentally not being tested in CI as well as a new#[cfg]
to use it on stable rust with normalreturn
under the assumption that LLVM is highly likely to do TCO.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested wasmtime-default-reviewers for a review on PR #9796.
alexcrichton requested abrown for a review on PR #9796.
abrown submitted PR review.
alexcrichton merged PR #9796.
Last updated: Dec 23 2024 at 12:05 UTC