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

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

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
活発
技術スタック
javascript, rust
領域
compilers

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
4.9k
フォーク
166
平均マージ
3時間 42分
マージ済み PR(30日)
884

環境構築

はじめの一歩

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

PerryTS/perry のほかの issue

PerryTS/perry の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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