Closed
Bug 676738
Opened 13 years ago
Closed 13 years ago
Change jsint index arguments to JS_*Element functions to uint32 index
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: Waldo, Assigned: Waldo)
References
Details
Attachments
(7 files)
(deleted),
patch
|
dmandelin
:
review+
jst
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
Sparse/dense property storage will want this API split to make indexed accesses more efficient.
I queried the newsgroup about making the change (versus adding yet another kind of property-access API), and no one expressed concern. It's also worth noting that every use of these methods that I found in mozilla-central was using only the non-negative half of the index space. I expect this is the common case. I wonder, even, how much anyone ever used negative elements -- I'd guess element stuff is mostly used for arrays and arraylike things, and you're not going to hit negative elements there.
(I did end up changing some Mozilla callers to avoid possible compiler warnings. Technically I probably could have gotten away without doing this, but it seemed a good time to clean up signage usage in that code when I already had to audit them to make sure none depended on being able to pass negative indexes.)
Assignee | ||
Comment 1•13 years ago
|
||
I'm doing one patch per method changed, to keep things bite-sized. There's no particular reason it couldn't all be concatenated together into one patch, it just might get (a little bit) big.
Attachment #550917 -
Flags: review?(jst)
Attachment #550917 -
Flags: review?(dmandelin)
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #550919 -
Flags: review?(dmandelin)
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #550920 -
Flags: review?(dmandelin)
Assignee | ||
Comment 4•13 years ago
|
||
Attachment #550921 -
Flags: review?(dmandelin)
Assignee | ||
Updated•13 years ago
|
Attachment #550921 -
Attachment description: dmandelin@moz → Change JS_LookupElement
Assignee | ||
Comment 5•13 years ago
|
||
Attachment #550922 -
Flags: review?(dmandelin)
Assignee | ||
Comment 6•13 years ago
|
||
Attachment #550923 -
Flags: review?(dmandelin)
Assignee | ||
Comment 7•13 years ago
|
||
Attachment #550924 -
Flags: review?(dmandelin)
Updated•13 years ago
|
Attachment #550917 -
Flags: review?(jst) → review+
Updated•13 years ago
|
Attachment #550917 -
Flags: review?(dmandelin) → review+
Updated•13 years ago
|
Attachment #550919 -
Flags: review?(dmandelin) → review+
Updated•13 years ago
|
Attachment #550920 -
Flags: review?(dmandelin) → review+
Updated•13 years ago
|
Attachment #550921 -
Flags: review?(dmandelin) → review+
Updated•13 years ago
|
Attachment #550922 -
Flags: review?(dmandelin) → review+
Updated•13 years ago
|
Attachment #550923 -
Flags: review?(dmandelin) → review+
Updated•13 years ago
|
Attachment #550924 -
Flags: review?(dmandelin) → review+
Assignee | ||
Comment 8•13 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/f2ff60137bb3
http://hg.mozilla.org/integration/mozilla-inbound/rev/bcc124e86068
http://hg.mozilla.org/integration/mozilla-inbound/rev/43dbc22aa5fa
http://hg.mozilla.org/integration/mozilla-inbound/rev/cacc7fdcba7b
http://hg.mozilla.org/integration/mozilla-inbound/rev/77ea7ae6ce08
http://hg.mozilla.org/integration/mozilla-inbound/rev/30dd110a4ed6 (not part of this bug, but required for the last two patches to be definitely comprehensive)
http://hg.mozilla.org/integration/mozilla-inbound/rev/2d818a0b3cd1
http://hg.mozilla.org/integration/mozilla-inbound/rev/6030c9f7b3ca
Whiteboard: [inbound]
Target Milestone: --- → mozilla8
Comment 9•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/f2ff60137bb3
http://hg.mozilla.org/mozilla-central/rev/bcc124e86068
http://hg.mozilla.org/mozilla-central/rev/43dbc22aa5fa
http://hg.mozilla.org/mozilla-central/rev/cacc7fdcba7b
http://hg.mozilla.org/mozilla-central/rev/77ea7ae6ce08
http://hg.mozilla.org/mozilla-central/rev/30dd110a4ed6
http://hg.mozilla.org/mozilla-central/rev/2d818a0b3cd1
http://hg.mozilla.org/mozilla-central/rev/6030c9f7b3ca
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
You need to log in
before you can comment on or make changes to this bug.
Description
•