5c follow-up: route non-constant direct eval through the prototype-write census as a dynamic write

Aperta
#12,644 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
javascript, rust
Ambito
compilers

Direzione di ricerca

The payload names no files. Start by locating the step 3 prototype-write census from Closed World 5c and the Pristine(family) guards it feeds, then see how a direct eval call is currently treated there. Done means a non-constant direct eval counts as a dynamic write, interpreter prototype writes set bit 30 on the prototype they hit, and the guards answer per family rather than program-wide. Ask the coordinator for the design details before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

performance

After Closed World 5c, a non-constant direct eval anywhere in a program still sends every method call on a value receiver through the patched-prototype path, program-wide. fastify doesn't hit this, but any program with such an eval pays it everywhere.

Fix (coordinator decision): treat a non-constant direct eval in step 3's prototype-write census as a dynamic write. The interpreter's prototype writes then set bit 30 on the prototype they hit, and the Pristine(family) guards answer per family instead of program-wide.

Lingua principale
Rust
Stelle
4.9k
Fork
166
Merge medio
3h 6m
PR unite (30g)
868

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PerryTS/perry

Tutte le issue di PerryTS/perry

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.