Closed
Bug 1191098
Opened 10 years ago
Closed 10 years ago
Replace AutoHashableValueRooter with Rooted
Categories
(Core :: JavaScript: GC, defect)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
mozilla42
| Tracking | Status | |
|---|---|---|
| firefox42 | --- | fixed |
People
(Reporter: terrence, Assigned: terrence)
Details
Attachments
(1 file)
|
12.01 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
This was fairly straightforward. The only complication is that both Rooted and HashableValue have a |get()| method. I wrapped HashableValue::get() as RooredBase<HashableValue>::value() to avoid the collision.
Attachment #8643327 -
Flags: review?(jcoppeard)
Comment 1•10 years ago
|
||
Comment on attachment 8643327 [details] [diff] [review]
remove_AutoHashableValueRooter-v0.diff
Review of attachment 8643327 [details] [diff] [review]:
-----------------------------------------------------------------
Nice.
::: js/src/builtin/MapObject.h
@@ +40,5 @@
> bool setValue(JSContext* cx, HandleValue v);
> HashNumber hash() const;
> bool operator==(const HashableValue& other) const;
> HashableValue mark(JSTracer* trc) const;
> Value get() const { return value.get(); }
Not related to this patch, but looks like this should be called value() for symmetry with setValue().
Attachment #8643327 -
Flags: review?(jcoppeard) → review+
Comment 3•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•