julia
f02f12f1 - Compiler: Honor invoke targets during semi-concrete evaluation (#65350)

Commit
3 hours ago
Compiler: Honor invoke targets during semi-concrete evaluation (#65350) * Compiler: Honor invoke targets during semi-concrete evaluation Fold `:invoke` with its recorded target instead of dispatching again on the constant arguments If an interpreter-owned target has no entry point, reuse native code for the same method instance and world when available or continue interpreting the IR Codex reproduced the incorrect result and implemented the fix Fixes #65302 Assisted-by: Codex (gpt-6.2-astra) * Compiler: Simplify concrete_eval_invoke target selection Drop concrete_eval_invoke_target and InternalCodeCache lookup, extract the callee via collect_const_args with popfirst!, and fall back to invoking Method when an external CodeInstance has no entry point * Compiler: Restrict direct folding of invoke targets Only execute native CodeInstances backed by a MethodInstance during semi-concrete interpretation and leave other targets to the existing IR analysis path * fixup! Compiler: Restrict direct folding of invoke targets Restore balance to the force: use the heuristic (and notably the override) exactly from inference, rather than hard-coding an incomplete version of it here. --------- Co-authored-by: Jameson Nash <vtjnash@gmail.com>
Author
Parents
Loading