Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove constructor passed methods #786

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

tilk
Copy link
Member

@tilk tilk commented Jan 18, 2025

This PR replaces passing methods to constructors with proxy. The module requiring external methods needs to declare their inputs/outputs. This gives better error messages when interfaces mismatch and simplifies mocking in tests. Code size is also somewhat reduced.

Refactored modules are Retirement. ResultAnnouncement, WakeupSelect and DecodeStage. The Scheduler is not refactored to avoid conflicts with the checkpointing branch.

@tilk tilk added the refactor Doesn't change functionality, but makes stuff nicer label Jan 18, 2025
@tilk tilk changed the title Remove constructor passed methods from retirement Remove constructor passed methods Jan 21, 2025
@tilk tilk marked this pull request as ready for review January 21, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Doesn't change functionality, but makes stuff nicer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant