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
Reduce usage of ppcState global. #11429
Conversation
30b23aa
to
f781f43
Compare
|
Why the intermediate PowerPCManager class? Couldn't we just have system.GetPPCState() returning a PowerPCState instance instead? |
|
Yes, I suppose so, I was just following the way I have refactored the other global state files so far where at the end everything of a given file ended up in a single class. But given the way |
f781f43
to
efa58e6
Compare
|
Like this, I assume? |
efa58e6
to
104ff94
Compare
104ff94
to
346f57c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two small nits
346f57c
to
505a61f
Compare
505a61f
to
be2d394
Compare
I stopped before I got to the JIT because that was looking like it needed a bit more refactoring and this was already getting gigantic...
Right now
system.GetPPCState()is just a reference to theppcStateglobal, but I'm aiming to completely eliminate that and to have it actually just have aPowerPCStateinstance inSysteminstead.Every commit should compile as-is, which may be useful for bisecting in case I made an error somewhere.