Closed
Bug 1180017
Opened 9 years ago
Closed 9 years ago
Make GCCellPtr easier to use with new opaque type decls
Categories
(Core :: JavaScript: GC, defect)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: terrence, Assigned: jimb)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
43.38 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
Now that we need external type decls for all TraceKinds anyway for CallbackTracer, we might as well make use of them in GCCellPtr to simplify the definitions and make it more useful internally (and potentially externally too, since it is used by CallbackTracer). Specifically, we should move MapTypeToTraceKind external and use that to implement GCCellPtr::is<T> and as<T>. This would get rid of the isFoo()/asFoo() method explosion.
Assignee | ||
Comment 1•9 years ago
|
||
Perhaps this goes too far?
Assignee: terrence → jimb
Attachment #8629534 -
Flags: review?(terrence)
Reporter | ||
Comment 2•9 years ago
|
||
Comment on attachment 8629534 [details] [diff] [review] Give GCCellPtr is<T> and to<T> methods, replacing isFoo and toFoo methods. Fix callers. Review of attachment 8629534 [details] [diff] [review]: ----------------------------------------------------------------- Having worked with those tools for a couple months, I'm happy with them. Might as well take it to its logical conclusion: these are exactly the tools we want, so let's just make it so.
Attachment #8629534 -
Flags: review?(terrence) → review+
Assignee | ||
Comment 3•9 years ago
|
||
<jimb> terrence: For consistency within SpiderMonkey, I would like to have the extraction method named as<T>, instead of to<T>. Is that okay with you? <terrence> jimb: yes, that's fine
Assignee | ||
Comment 4•9 years ago
|
||
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e986173481ef
Assignee | ||
Comment 5•9 years ago
|
||
Dumb build issue; new Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=12ea8194a61e
Assignee | ||
Updated•9 years ago
|
Flags: in-testsuite-
Target Milestone: --- → mozilla42
Comment 7•9 years ago
|
||
sorry had to back this out in https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=b65c048414f7 since one of this changes might have caused bug 1188799 at least started with this pushes
Flags: needinfo?(jimb)
Comment 9•9 years ago
|
||
and re-checkedin since this turned out to be innocent. sorry Jim :(
Comment 11•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/dde3457426b9 https://hg.mozilla.org/mozilla-central/rev/b6873269bc49
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(jimb)
You need to log in
before you can comment on or make changes to this bug.
Description
•