Closed Bug 1132042 Opened 10 years ago Closed 5 years ago

Expand RootedGeneric<T> to support HandleGeneric<T> and MutableHandleGeneric<T>

Categories

(Core :: JavaScript: GC, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: Paolo, Unassigned)

References

Details

The RootedGeneric<T> template class from bug 1020690 could be expanded to support a "set" method, and then new template classes could be added like HandleGeneric<T> and MutableHandleGeneric<T>. The new classes could be used, for example, to replace AutoLocationValueRooter and MutableHandleLocationValue: http://mxr.mozilla.org/mozilla-central/source/js/src/vm/SavedStacks.h#173
Component: JavaScript Engine → JavaScript: GC

Rooted<> now supports writing your own trace method and Handle<> and MutableHandle<> work as expected.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.