Clean up reshaping for shape teleporting
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
Details
Attachments
(5 files)
We can tidy up the shape teleporting code a bit to prepare for future changes.
Assignee | ||
Comment 1•3 years ago
|
||
We only need to call ReshapeForShadowedProp when adding a new property to the shape,
but we were also calling it when changing an existing property or when we call a
defineProperty hook.
Moving the call into addProperty/addCustomDataProperty is both more efficient and simpler.
This is also preparing for future invalidation-related changes.
Assignee | ||
Comment 2•3 years ago
|
||
This likely hasn't been true for quite some time.
Depends on D129628
Assignee | ||
Comment 3•3 years ago
|
||
Depends on D129629
Assignee | ||
Comment 4•3 years ago
|
||
The "NonPrototype" in the name no longer matteres, because shape teleporting is now
handled by addProperty which we end up calling.
Depends on D129630
Assignee | ||
Comment 5•3 years ago
|
||
Merge SetProto into JSObject::setProtoUnchecked. This is similar to part 1.
Depends on D129631
Comment 7•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4c241731c330
https://hg.mozilla.org/mozilla-central/rev/52c2ad00c45c
https://hg.mozilla.org/mozilla-central/rev/56d9473b398c
https://hg.mozilla.org/mozilla-central/rev/14e58099684f
https://hg.mozilla.org/mozilla-central/rev/45630b70f1fd
Description
•