abrown opened PR #1351 from upstream-interpreter to master:
- [x] This has been discussed in meetings and chat messages.
- [x] A short description of what this does, why it is needed: this implements a rudimentary interpreter for Cranelift IR; only a subset of instructions are currently implemented and implementation gaps are marked with
TODOorFIXME. This PR is a RFC on the interpreter design; any feedback is welcome.- [x] This PR contains test cases, if meaningful.
- [s] A reviewer from the core maintainer team has been assigned for this PR.
abrown requested bnjbvr for a review on PR #1351.
abrown requested bnjbvr, and julian-seward1 for a review on PR #1351.
abrown requested bnjbvr, sunfishcode, and julian-seward1 for a review on PR #1351.
abrown edited PR #1351 from upstream-interpreter to master:
- [x] This has been discussed in meetings and chat messages.
- [x] A short description of what this does, why it is needed: this implements a rudimentary interpreter for Cranelift IR; only a subset of instructions are currently implemented and implementation gaps are marked with
TODOorFIXME. This PR is a RFC on the interpreter design; any feedback is welcome.- [x] This PR contains test cases, if meaningful.
- [x] A reviewer from the core maintainer team has been assigned for this PR.
bjorn3 submitted PR Review.
bjorn3 created PR Review Comment:
What does TCO mean in this context?
bjorn3 submitted PR Review.
bjorn3 created PR Review Comment:
This README should be changed to describe the interpreter instead of the module system.
bjorn3 created PR Review Comment:
What is the purpose of this?
bjorn3 created PR Review Comment:
I think this should be
u64instead. In any case it is important to not forget correct zero/sign extension.
bjorn3 created PR Review Comment:
I am afraid this won't be removed when it isn't WIP anymore.
abrown submitted PR Review.
abrown created PR Review Comment:
tail-call optimization
abrown submitted PR Review.
abrown created PR Review Comment:
IDE hint; will remove
abrown updated PR #1351 from upstream-interpreter to master:
- [x] This has been discussed in meetings and chat messages.
- [x] A short description of what this does, why it is needed: this implements a rudimentary interpreter for Cranelift IR; only a subset of instructions are currently implemented and implementation gaps are marked with
TODOorFIXME. This PR is a RFC on the interpreter design; any feedback is welcome.- [x] This PR contains test cases, if meaningful.
- [x] A reviewer from the core maintainer team has been assigned for this PR.
abrown submitted PR Review.
abrown created PR Review Comment:
You're probably right; let me think some more about this.
abrown updated PR #1351 from upstream-interpreter to master:
- [x] This has been discussed in meetings and chat messages.
- [x] A short description of what this does, why it is needed: this implements a rudimentary interpreter for Cranelift IR; only a subset of instructions are currently implemented and implementation gaps are marked with
TODOorFIXME. This PR is a RFC on the interpreter design; any feedback is welcome.- [x] This PR contains test cases, if meaningful.
- [x] A reviewer from the core maintainer team has been assigned for this PR.
abrown created PR Review Comment:
Is this better as a
FuncRef? I used&'a Functionhere because it was convenient but it may be more consistent and (possibly?) efficient to use a 4-byteFuncRefhere instead. (I probably need to look again at how efficient it is to useFuncRefto index into anEnvironment).
abrown submitted PR Review.
bnjbvr closed without merge PR #1351.
Last updated: Dec 06 2025 at 05:03 UTC