-
Notifications
You must be signed in to change notification settings - Fork 102
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
update system methods. #1155
base: master
Are you sure you want to change the base?
update system methods. #1155
Conversation
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.
You also moved some methods and it complicate the review :(
@@ -59,6 +59,12 @@ static Instruction() | |||
} | |||
} | |||
|
|||
internal Instruction AddTarget(JumpTarget target) | |||
{ | |||
target.Instruction = this; |
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.
This doesn't add the NOP, isn't it?
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.
This one will not, we can set jump target to existing opcode, if there is none, we can call InstructionsBuilder.Addtarget
and add a nop and attach the jumptarget to it.. This one inside the Instruction is for adding jump target to existing opcode, while the one with the same name AddTarget
in the InstructionsBuilder
is for situations where we have to set jumptarget to Nop.
I made this change to make it easier to write the code, and make instructoins look shorter.....
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.
But it's working, isn't it?
I know,,, i made this super huge pr,,,,,, it just keep growing while i was trying to make it work....... have being working on this for 15 hours without resting...... |
I tried my best to make it easier for reviewing, and avoided changes to the compile result..... BUT, there is still a case that will change the artifact,,, which is I added |
No description provided.