Closed
Bug 1421152
Opened 7 years ago
Closed 7 years ago
Add a checked cast method to TenuredCell
Categories
(Core :: JavaScript: GC, enhancement)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: allstars.chh, Assigned: allstars.chh)
Details
Attachments
(1 file, 1 obsolete file)
4.49 KB,
patch
|
allstars.chh
:
review+
|
Details | Diff | Splinter Review |
This is a follow-up of bug 1328948 see https://bugzilla.mozilla.org/show_bug.cgi?id=1328948#c7
Assignee | ||
Comment 1•7 years ago
|
||
Hi Jonco This is the patch for TenuredCell, however I didn't find any caller that could use as() instead.
Attachment #8932339 -
Flags: review?(jcoppeard)
Comment 2•7 years ago
|
||
Comment on attachment 8932339 [details] [diff] [review] Patch Review of attachment 8932339 [details] [diff] [review]: ----------------------------------------------------------------- Looks good! There's a couple of places in AtomMarkingRuntime::atomIsMarked() where we can use is/as on a TenuredCell. ::: js/src/gc/Marking.cpp @@ +2015,5 @@ > inline T* > MarkStack::TaggedPtr::as() const > { > MOZ_ASSERT(tag() == MapTypeToMarkStackTag<T*>::value); > + MOZ_ASSERT(ptr()->asTenured().is<T>()); We don't care about efficiency (so much) in assertions, so for simplicity these could be: MOZ_ASSERT(ptr()->isTenured()); MOZ_ASERTT(ptr()->is<T>));
Attachment #8932339 -
Flags: review?(jcoppeard) → review+
Assignee | ||
Comment 3•7 years ago
|
||
Attachment #8932339 -
Attachment is obsolete: true
Attachment #8932749 -
Flags: review+
Pushed by yhuang@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/72fbce0bb347 Add a checked cast method to TenuredCell. r=jonco
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/72fbce0bb347
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•