Skip to content

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented Dec 21, 2025

Left-over from .NET Native calling convention converter. We only need the tailcall variant of universal transition.

Left-over from .NET Native calling convention converter. We only need
the tailcall variant of universal transition.
@jkotas
Copy link
Member Author

jkotas commented Dec 21, 2025

Related to #122639

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the redundant RhpUniversalTransition function that was a leftover from the .NET Native calling convention converter. Only the tailcall variant is retained, which is the only one actually needed.

Key Changes

  • Renamed RhpUniversalTransition_DebugStepTailCall to RhpUniversalTransitionTailCall across all architectures
  • Removed the non-tailcall RhpUniversalTransition variant and associated debugger step-in/step-over comments
  • Removed FEATURE_DYNAMIC_CODE and FEATURE_CUSTOM_IMPORTS preprocessor conditionals and definitions

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/coreclr/runtime/riscv64/StubDispatch.S Updated external reference and call to use renamed RhpUniversalTransitionTailCall
src/coreclr/runtime/loongarch64/StubDispatch.S Updated external reference and branch to use renamed RhpUniversalTransitionTailCall
src/coreclr/runtime/i386/StubDispatch.asm Updated external reference and jump to use renamed RhpUniversalTransitionTailCall
src/coreclr/runtime/arm/StubDispatch.S Updated branch to use renamed RhpUniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/riscv64/UniversalTransition.S Removed UniversalTransition and UniversalTransition_DebugStepTailCall variants, kept only UniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/portable.cpp Updated return location variables to use new UniversalTransitionTailCall naming
src/coreclr/nativeaot/Runtime/loongarch64/UniversalTransition.S Removed redundant variants, kept only UniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/i386/UniversalTransition.asm Removed FEATURE_DYNAMIC_CODE conditional and redundant variants, kept only UniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/arm64/UniversalTransition.asm Removed redundant variants and debugger step-in/step-over comments, kept only UniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/arm64/UniversalTransition.S Removed redundant variants and debugger step-in/step-over comments, kept only UniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/arm64/CachedInterfaceDispatchAot.asm Updated external reference and branch to use renamed RhpUniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/arm64/CachedInterfaceDispatchAot.S Updated external reference and branch to use renamed RhpUniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/arm/UniversalTransition.S Removed FEATURE_DYNAMIC_CODE conditional and redundant variants, kept only UniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/amd64/UniversalTransition.asm Removed FEATURE_DYNAMIC_CODE conditional and redundant variants, kept only UniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/amd64/UniversalTransition.S Removed FEATURE_DYNAMIC_CODE conditional and redundant variants, kept only UniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/amd64/CachedInterfaceDispatchAot.asm Removed duplicate EXTERN declarations and updated to use renamed RhpUniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/amd64/CachedInterfaceDispatchAot.S Updated jump to use renamed RhpUniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/StackFrameIterator.cpp Removed FEATURE_DYNAMIC_CODE conditional, updated return address checks to use only ReturnFromUniversalTransitionTailCall
src/coreclr/nativeaot/Runtime/CMakeLists.txt Removed FEATURE_CUSTOM_IMPORTS and FEATURE_DYNAMIC_CODE feature definitions

@jkotas jkotas merged commit 8b79b85 into dotnet:main Dec 22, 2025
102 of 104 checks passed
@jkotas jkotas deleted the RhpUniversalTransition branch December 22, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants