Skip to content

Conversation

@Zheaoli
Copy link
Contributor

@Zheaoli Zheaoli commented Jun 28, 2025

Signed-off-by: Manjusaka <[email protected]>
@Fidget-Spinner
Copy link
Member

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;
Copy link
Member

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.

Copy link
Contributor Author

@Zheaoli Zheaoli Dec 11, 2025

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?

Copy link
Contributor Author

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)

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Member

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]>
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.

3 participants