Closed
Bug 791022
Opened 13 years ago
Closed 12 years ago
GC: exact rooting API's need a shared way to avoid constantly rerooting constants
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: terrence, Unassigned)
References
Details
(Whiteboard: [js:t])
Constant Values such as undefined, null, true, false, etc do not need to be rooted. We should put pairs of |const Value fooValue = FooValue();| and |static HandleValue FooHandle() { return Handle::fromMarkedLocation(&fooValue); }| somewhere for this purpose. It should allow us to kill off many totally extraneous Rooted and will make it easier to convert remaining Values to Handles.
Updated•13 years ago
|
Whiteboard: [js:t]
Comment 1•12 years ago
|
||
Note that we now have JS::NullHandleValue and JS::UndefinedHandleValue in jsapi.h. We could do similar things for true and false.
Updated•12 years ago
|
| Reporter | ||
Comment 2•12 years ago
|
||
It looks like we did not have a serious need.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Resolution: FIXED → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•