Skip to content

GH-108614: Remove non-debug uses of #if TIER_ONE and #if TIER_TWO from _POP_FRAME op. - #108685

Merged
markshannon merged 5 commits into
python:mainfrom
faster-cpython:remove-tiers-pop-frame
Aug 31, 2023
Merged

GH-108614: Remove non-debug uses of #if TIER_ONE and #if TIER_TWO from _POP_FRAME op.#108685
markshannon merged 5 commits into
python:mainfrom
faster-cpython:remove-tiers-pop-frame

Conversation

@markshannon

@markshannonmarkshannon commented Aug 30, 2023

Copy link
Copy Markdown
Member

@markshannon

Copy link
Copy Markdown
MemberAuthor

I don't think this is newsworthy

@gvanrossum

Copy link
Copy Markdown
Member

Please give me some time to review this.

@gvanrossumgvanrossum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing STORE_IP() is meant to be used by _PUSH_FRAME and you're leaving that for a follow-up PR?

Comment threadPython/ceval_macros.h Outdated
Comment on lines +384 to +385
#define STORE_IP() \
do {frame->prev_instr = next_instr-1; } while (0)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot find any place that uses STORE_IP()?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added all four, then used them where necessary.
I'll remove STORE_IP for now, but we will need it for YIELD_VALUE.

@markshannon
markshannon merged commit 059bd4d into python:mainAug 31, 2023
@markshannon
markshannon deleted the remove-tiers-pop-frame branch September 5, 2023 12:25
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@markshannon@gvanrossum@bedevere-bot