-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
gh-134584: Eliminate redundant refcounting from _CALL_STR_1
#136070
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Manjusaka <[email protected]>
Signed-off-by: Manjusaka <[email protected]>
|
Thanks! This looks great to me. Just waiting for Mark's PR on TOS caching to get merged. |
| (void)callable; // Silence compiler warnings about unused variables | ||
| (void)null; | ||
| PyStackRef_CLOSE(arg); | ||
| a = arg; |
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.
Please move INPUTS_DEAD() to after this line (right before ERROR_IF).
Otherwise, LGTM, I will merge after this PR merges in main.
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.
I'm not sure my thought is right
The incorrect order will cause the incorrect stack_pointer movement right?
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.
Or it seems it's just a call convention(I have that the different order is not related with the generated code)
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.
I think I got it. In this case, seems INPUT_DEAD() is not related with the generated code. BTW we should keep the use the INPUT_DEAD after all input action completed to avoid generate wrong code in other ops
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.
Yeah the only problem is we need to move INPUTS_DEAD() to after ERROR_IF, but the code generator will reject it for now. So we need to wait till I merge my PR fixing that.
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'll need to use ERROR_NO_POP() before modifying the stack.
Signed-off-by: Manjusaka <[email protected]>
Signed-off-by: Manjusaka <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.