Closed
Bug 899973
Opened 12 years ago
Closed 12 years ago
GC: Convert the rest of the JS property API to use MutableHandleValue for out params
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: jonco, Assigned: jonco)
References
Details
(Keywords: dev-doc-complete)
Attachments
(2 files)
17.71 KB,
patch
|
sfink
:
review+
|
Details | Diff | Splinter Review |
10.75 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
Following on from bug 897484 and bug 896540, let's convert the rest of the JS property API to use MutableHandleValue for out parameters.
Attachment #783707 -
Flags: review?(sphink)
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #783710 -
Flags: review?(bzbarsky)
Comment 2•12 years ago
|
||
Comment on attachment 783707 [details] [diff] [review]
property-api-mhv
Review of attachment 783707 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/jsapi.cpp
@@ +3144,2 @@
> JS_PUBLIC_API(JSBool)
> JS_LookupElement(JSContext *cx, JSObject *objArg, uint32_t index, jsval *vp)
How about this one?
@@ +3973,5 @@
> JSBool succeeded;
> if (!JSObject::deleteByValue(cx, obj, StringValue(atom), &succeeded))
> return false;
>
> + rval.setBoolean(succeeded);
These really should become bool*s
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to :Ms2ger from comment #2)
> How about this one?
I'm leaving the JS_*Element() ones for the next bug.
> These really should become bool*s
Good idea - I'll do that as a followup bug too.
Comment 4•12 years ago
|
||
Comment on attachment 783707 [details] [diff] [review]
property-api-mhv
Review of attachment 783707 [details] [diff] [review]:
-----------------------------------------------------------------
Yay! It's really great to see these changing.
Attachment #783707 -
Flags: review?(sphink) → review+
![]() |
||
Comment 5•12 years ago
|
||
Comment on attachment 783710 [details] [diff] [review]
property-api-mhv-browser
>+ JS::RootedValue prop(cx);
(Making rooting hazards not compile)++.
r=me
Attachment #783710 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 6•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Blocks: ExactRootingBrowser
No longer depends on: ExactRootingBrowser
Comment 7•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e291816b49be
https://hg.mozilla.org/mozilla-central/rev/5ee8be4e4815
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Assignee | ||
Updated•11 years ago
|
Blocks: 773686
Keywords: dev-doc-needed
Comment 8•10 years ago
|
||
Docs updated by :arai :)
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_Reference/JS_LookupProperty
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_LookupElement
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetOwnPropertyDescriptor
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DeleteProperty2
Technical review appreciated.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•