Closed
Bug 1437876
Opened 6 years ago
Closed 6 years ago
Remove JS_ARRAY_LENGTH and JS_ARRAY_END
Categories
(Core :: JavaScript Engine, enhancement, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: jorendorff, Assigned: jorendorff)
References
Details
Attachments
(1 file)
9.97 KB,
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
mozilla::ArrayLength() is better: it won't silently give a bogus answer if you pass it a non-array argument. (Also, JS_ARRAY_LENGTH broke my patch, a capital offense. Really, "unified" builds are to blame, as usual, but since I can't murder them, JS_ARRAY_LENGTH gets it.)
Assignee | ||
Comment 1•6 years ago
|
||
mozilla::ArrayLength() is better: it won't silently give a bogus answer if you pass it a non-array argument.
Attachment #8950624 -
Flags: review?(jdemooij)
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → jorendorff
Status: NEW → ASSIGNED
Comment 2•6 years ago
|
||
Comment on attachment 8950624 [details] [diff] [review] Remove JS_ARRAY_LENGTH and JS_ARRAY_END Review of attachment 8950624 [details] [diff] [review]: ----------------------------------------------------------------- Good riddance. ::: js/src/gc/AllocKind.h @@ +189,5 @@ > FOR_EACH_ALLOCKIND(DEFINE_NURSERY_ALLOCABLE) > #undef DEFINE_NURSERY_ALLOCABLE > }; > > + static_assert(MOZ_ARRAY_LENGTH(map) == size_t(AllocKind::LIMIT), Nit: mozilla::ArrayLength here and below?
Attachment #8950624 -
Flags: review?(jdemooij) → review+
Assignee | ||
Comment 3•6 years ago
|
||
D'oh. Thanks.
Assignee | ||
Comment 4•6 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/4d7a22f4a198b0397c9540cdcc2fc3bfe8b5e3e2 Bug 1437876 - Remove JS_ARRAY_LENGTH and JS_ARRAY_END. r=jandem.
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4d7a22f4a198
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•