Closed
Bug 917295
Opened 12 years ago
Closed 12 years ago
GC: Handlify public date APIs
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: jonco, Assigned: jonco)
References
Details
Attachments
(1 file)
5.24 KB,
patch
|
bzbarsky
:
review+
terrence
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•12 years ago
|
Summary: GC: Handlify public data APIs → GC: Handlify public date APIs
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #806587 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•12 years ago
|
Attachment #806587 -
Flags: review?(terrence)
Comment 2•12 years ago
|
||
Comment on attachment 806587 [details] [diff] [review]
handlify-date-apis
Review of attachment 806587 [details] [diff] [review]:
-----------------------------------------------------------------
The JSAPI change looks good. Thank you for not making me look too closely at IDBKeyRange: that looks messy.
Attachment #806587 -
Flags: review?(terrence) → review+
Comment 3•12 years ago
|
||
Comment on attachment 806587 [details] [diff] [review]
handlify-date-apis
Review of attachment 806587 [details] [diff] [review]:
-----------------------------------------------------------------
KeyRange is horrible!
::: dom/indexedDB/IDBKeyRange.cpp
@@ +239,5 @@
> {
> nsresult rv;
> nsRefPtr<IDBKeyRange> keyRange;
>
> + if (!JSVAL_IS_VOID(aVal) && !JSVAL_IS_NULL(aVal)) {
if (!aVal.isNullOrUndefined()) {
@@ +245,2 @@
>
> + JS::Rooted<JSObject*> obj(aCx, aVal.isObject() ? aVal.toObjectOrNull() : NULL);
I think we should use JS::RootedObject as well, when we use HandleObject already. If you already use isObject, then you can also use aVal.toObject()
@@ +245,3 @@
>
> + JS::Rooted<JSObject*> obj(aCx, aVal.isObject() ? aVal.toObjectOrNull() : NULL);
> + if (JSVAL_IS_PRIMITIVE(aVal) ||
aVal.isPrimitive(). Seems like JS_IsArrayObject(aCx, obj) would fit on this line?
![]() |
||
Comment 4•12 years ago
|
||
Comment on attachment 806587 [details] [diff] [review]
handlify-date-apis
The codegen bit should probably use "possibleDateObject" as the variable name, to reduce risk of collisions.
r=me with that on that part.
Someone needs to carefully review the IDB bits, still.
Attachment #806587 -
Flags: review?(bzbarsky) → review+
Comment 5•12 years ago
|
||
Comment on attachment 806587 [details] [diff] [review]
handlify-date-apis
Review of attachment 806587 [details] [diff] [review]:
-----------------------------------------------------------------
Also, r=me on the IDBKeyRange bits, although I don't have anything to add over what Tom found.
Assignee | ||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Assignee | ||
Updated•12 years ago
|
Keywords: dev-doc-needed
Updated•5 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•