Replace AutoHashableValueRooter with Rooted

RESOLVED FIXED in Firefox 42

Status

()

defect
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: terrence, Assigned: terrence)

Tracking

Trunk
mozilla42
Points:
---

Firefox Tracking Flags

(firefox42 fixed)

Details

Attachments

(1 attachment)

Assignee

Description

4 years ago
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 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+
https://hg.mozilla.org/mozilla-central/rev/21c28216e5e7
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.