Skip to content

Commit

Permalink
Refactor Pulley's interpreter loop (#9629)
Browse files Browse the repository at this point in the history
* Refactor Pulley's interpreter loop

* Define loop-over-match and loop-with-tail-calls in separate files to
  make it more clear which is in which (and less `#[cfg]`)
* Move per-opcode handlers to `interp.rs` outside of a macro invocation
  to get better native editor support (e.g. formatting, hints, etc).

This is roughly intended to be perf-neutral but we don't have many
automated benchmarks yet for Pulley so it's intended to profile later as
well.

* Model interpreter as trait implementation

* Add more comments
  • Loading branch information
alexcrichton authored Nov 22, 2024
1 parent a3d0077 commit 5ed60c2
Show file tree
Hide file tree
Showing 5 changed files with 762 additions and 674 deletions.
Loading

0 comments on commit 5ed60c2

Please sign in to comment.