Repository navigation
refactor(interp): split native into engine, policy and feedback - #290
Merged
Merged
Conversation
native held tier decisions, feedback and the native runtime in one type. engine runs native code, policy decides when to compile and retire, and feedback holds profiles. i.native becomes i.jit: jit names the subsystem, and native only machine code and its state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 56 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #290 +/- ##
=======================================
Coverage 28.45% 28.45%
=======================================
Files 120 122 +2
Lines 127432 127432
=======================================
Hits 36263 36263
Misses 89331 89331
Partials 1838 1838 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #275.
Change
interp.nativeheld tier decisions, feedback and the native runtime in one type. It is now three, split by which fields each method actually touches:feedbackinterp/feedback.gopolicyinterp/policy.goCompilationPolicyengineinterp/jit.goDependencies run one way:
engineembedspolicy, which embedsfeedbackand*shared. Nopolicymethod runs native code.i.nativeis nowi.jit, andtype nativeisengine. The rule from the design:jitnames the subsystem, andnativenames only machine code and its state. A package-leveltype jitwould collide with theinternal/jitimport, so the type takes wazero's word.observe,observerandentertouchsitesbut install and run native entries, so they stay inengine.sharedstays one struct; splitting it would have no second user.Evidence
ebecamecallto free the receiver.make checkthrough the hook, includingmake check-generated(threaded.gochanges onlyi.nativetoi.jit).(*engine).callnow costs 80 of 80, up from 78, because the embeddedgatesadds selector depth.make check-inlinestill passes and guards it. Any further cost means movinggatesup toengine.Docs
AGENTS.mdtask router anddocs/jit-internals.md.🤖 Generated with Claude Code