python / python/cpython

Tidy up tier two

Abierto
#129,709 1 comentario 0 reacciones 1 asignado Ver en GitHub

@brandtbucher ya está trabajando en esto.

Desde el 6/2/2025.

interpreter-core topic-JIT type-feature
Lenguaje dominante
Python
Estrellas
77.2k
Forks
35.9k
Métricas de merge de PR
Métricas de PR pendientes

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.