Repository navigation
keep callees of plain callers plain - #37
Open
dougchansan wants to merge 1 commit into
Open
dougchansan wants to merge 1 commit into
dougchansan wants to merge 1 commit into
Conversation
dougchansan
force-pushed
the
fix/plain-caller-targets
branch
from
October 10, 2026 19:11
275b7d6 to
54e0473
Compare
on x86 a plain caller can't call a native range directly, so each call exits through the runner. function-aligned ranges make small leaves like OSDisableInterrupts native while their callers stay plain, so hot loops paid a dispatcher round trip per call. demote those callees after the abi policy runs. recompcore runtime only.
dougchansan
force-pushed
the
fix/plain-caller-targets
branch
from
October 10, 2026 21:15
54e0473 to
8582d0b
Compare
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.
with function-aligned ranges, small leaves like
OSDisableInterrupts/OSRestoreInterruptsbecome native while their callers stay plain. on x86 a plain caller can't call a native range directly (branch_targets.cpp,cold_escapes_), so every call exits through the runner. pokemon colosseum's main thread loop calls both every iteration.this demotes native callees of plain callers to a fixpoint, right after the abi policy runs. recompcore runtime only; moderngekko is untouched.
frames in 20s, on top of #35:
tests pass locally apart from
modern_memory_service, which already fails on windows.