python / python/cpython

Tidy up tier two

オープン
#129,709 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

@brandtbucher がすでに取り組んでいます。

2025年2月6日 から。

interpreter-core topic-JIT type-feature
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

Tier two has grown quite organically, and the two different implementations (the interpreter and JIT) have grown with it. In many places, we're repeating the same logic, or doing things in two or three different ways.

I'd like clean up tier two a bit, in the process making the tier two interpreter and JIT more similar. We enter the JIT by making a call, so I don't see a very compelling reason why the tier two interpreter needs to do anything different.

There are also some unused macros and labels lying around, and a few labels that are only used by one or two instructions. These can be cleaned up as well.

I'll start by generally tidying things up in one PR, then moving the tier two interpreter out into its own function in a follow-up PR.

Linked PRs
  • gh-129710

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。