object model step 1: narrow the Object.create family census (freeze/relink/unnamed define) to reachable targets

Abierto
#12,640 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Refactorización
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
javascript, rust
Área
compilers

Línea de trabajo

The payload names no source files, so start by finding the census of freeze, seal, preventExtensions and defineProperty calls in the compiler, and check the pending branch step1r-land before changing anything. The witness is a shapes-options test program that also freezes an unrelated object; done means the Object.create family births stay enabled in that program. This is cross-cutting compiler analysis that the coordinator has already decided, so it is not a newcomer task.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

performance

Object-model step 1 (the Object.create(literal) families, PR pending from branch step1r-land) decides from three program-wide census facts whether a key add on an Object.create(P) family can be intercepted:

  • names given by defineProperty-style calls;
  • property definitions the scan can't name;
  • any freeze, seal or preventExtensions.

The rule is coarse. One freeze, relink or unnamed define anywhere in the program turns off every such family, even when the target can't be any family's prototype.

Fix forward: narrow each fact to the targets it can reach (P's family, or the families whose prototype set includes the written object), so that unrelated freezes and defines keep the families on. The witness is shapes-options plus a program that also freezes an unrelated object: the family births must stay on.

Coordinator decision: fix forward, not blocking.

Lenguaje dominante
Rust
Estrellas
4.9k
Forks
166
Merge medio
3 h 46 min
PR fusionados (30 d)
891

Preparar el entorno

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.

Más de PerryTS/perry

Todos los issues de PerryTS/perry

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.