Closed
Bug 881517
Opened 11 years ago
Closed 11 years ago
Remove mPrototypeNoHelper
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: bholley, Assigned: bholley)
References
Details
Attachments
(2 files)
1.02 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
8.41 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
I saw the JS guys trying to root this thing in bug 878160, and am pretty sure we don't need it anymore. Patches coming up.
Assignee | ||
Comment 1•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=07b04bbc012c
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #760622 -
Flags: review?(mrbkap)
Assignee | ||
Comment 3•11 years ago
|
||
The comments surrounding it don't make any sense to me, and most likely applied to a pre-CPG world.
Attachment #760623 -
Flags: review?(mrbkap)
Assignee | ||
Comment 4•11 years ago
|
||
This is green
Assignee | ||
Comment 5•11 years ago
|
||
Brian - Blake says that this was probably an old performance optimization (back when Shapes were called scopes) that's trying to share a Shape for all XPCWrappedNatives that don't have a custom proto. Does this make sense in the modern world, or can we kill it and just use Object.prototype?
Flags: needinfo?(bhackett1024)
Updated•11 years ago
|
Attachment #760622 -
Flags: review?(mrbkap) → review+
Comment 6•11 years ago
|
||
Comment on attachment 760623 [details] [diff] [review] Part 2 - Remove mPrototypeNoHelper machinery. v1 I've convinced myself this is correct. The old code that decided whether or not to share the base shape with the proto did require the proto to have the same number of fixed slots as the new object and the new code no longer does. bhackett should still chime in, though.
Attachment #760623 -
Flags: review?(mrbkap) → review+
Comment 7•11 years ago
|
||
Yeah, these days objects will share an initial shape if their prototype and other attributes are the same, regardless of what that prototype is.
Flags: needinfo?(bhackett1024)
Assignee | ||
Comment 8•11 years ago
|
||
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/9a2f3ec731e4 remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/a28d5406031e
Comment 9•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9a2f3ec731e4 https://hg.mozilla.org/mozilla-central/rev/a28d5406031e
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•