Closed
Bug 1143042
Opened 10 years ago
Closed 10 years ago
Switch AllocKind iteration over to range-based for loops
Categories
(Core :: JavaScript: GC, defect)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: ehoogeveen, Assigned: ehoogeveen)
References
Details
Attachments
(1 file, 1 obsolete file)
19.69 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
We can do this as a simple drop-in replacement once we have EnumeratedRange (bug 1142999).
Assignee | ||
Comment 1•10 years ago
|
||
I had to add braces in a few instances to appease MSVC. I'm not sure what the exact problem is, but I think it's something like
for (auto i : foo())
do {
// do stuff
} while(0);
that it doesn't like, where the do-while is part of MOZ_ASSERT().
Assignee: nobody → emanuel.hoogeveen
Assignee | ||
Comment 2•10 years ago
|
||
Rebased somewhat, including on top of 1143966. I also had to add #ifdef DEBUG around one for loop that only contained an assertion, since with a range-based for loop the assertion was the only use of the variable (unlike a regular for loop, where the header itself uses the variable)! This was causing warn-as-err opt builds to burn.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=98e3b2557b22
(I think OSX is experiencing some infra failure - other try jobs appear similarly affected)
Attachment #8577314 -
Attachment is obsolete: true
Attachment #8581193 -
Flags: review?(terrence)
Comment 3•10 years ago
|
||
Comment on attachment 8581193 [details] [diff] [review]
v1.1 - Switch AllocKind iteration over to range-based for loops.
Review of attachment 8581193 [details] [diff] [review]:
-----------------------------------------------------------------
\o/
Attachment #8581193 -
Flags: review?(terrence) → review+
Assignee | ||
Comment 4•10 years ago
|
||
This needs to land along with or after bug 1142999, but it shouldn't matter in which order you apply them.
Keywords: checkin-needed
Comment 5•10 years ago
|
||
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•