Skip to content

gh-118423: Add INSTRUCTION_SIZE macro to code generator#125467

Merged
markshannon merged 34 commits intopython:mainfrom
tomasr8:instr-size
Oct 29, 2024
Merged

gh-118423: Add INSTRUCTION_SIZE macro to code generator#125467
markshannon merged 34 commits intopython:mainfrom
tomasr8:instr-size

Conversation

@tomasr8
Copy link
Member

@tomasr8 tomasr8 commented Oct 14, 2024

I am not that familiar with the tier 1 interpreter (yet 😄 ) so I'd appreciate if someone could double check that for all
the places that use the new INSTRUCTION_SIZE macro, it is actually safe to do so.

I replaced all examples of next_instr - this_instr. There are still a few examples of 1 + INLINE_CACHE_ENTRIES_... but I wasn't sure whether those were safe to change as well.

I named the new macro INSTRUCTION_SIZE, but I'm happy to change it to INSTRUCTION_LENGTH if you prefer.

Feedback welcome :)

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants