Closed
Bug 1294844
Opened 8 years ago
Closed 8 years ago
groupOf shell function should use getGroup(cx)
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: spinda, Assigned: spinda)
Details
Attachments
(1 file, 2 obsolete files)
...to handle lazy groups properly.
Assignee | ||
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Comment on attachment 8780696 [details] [diff] [review]
Bug 1294844: groupOf shell function should use getGroup(cx)
Review of attachment 8780696 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/shell/js.cpp
@@ +3119,5 @@
> JS_ReportError(cx, "groupOf: object expected");
> return false;
> }
> JSObject* obj = &args[0].toObject();
> + args.rval().set(JS_NumberValue(double(uintptr_t(obj->getGroup(cx)) >> 3)));
Need to null-check the return value of getGroup(cx)
Attachment #8780696 -
Flags: review?(shu) → review+
Comment 3•8 years ago
|
||
Comment on attachment 8780696 [details] [diff] [review]
Bug 1294844: groupOf shell function should use getGroup(cx)
Review of attachment 8780696 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/jsobj.cpp
@@ -3442,5 @@
> (void*) globalObj, globalObj->getClass()->name);
> const Class* clasp = obj->getClass();
> fprintf(fp, "class %p %s\n", (const void*)clasp, clasp->name);
> - const ObjectGroup* group = obj->group();
> - fprintf(fp, "group %p\n", (const void*)group);
If you're so inclined, you could still print this if !hasLazyGroup(), and print something else if hasLazyGroup()
Assignee | ||
Comment 4•8 years ago
|
||
Like this?
Attachment #8780696 -
Attachment is obsolete: true
Attachment #8780701 -
Flags: review?(shu)
Assignee | ||
Updated•8 years ago
|
Attachment #8780701 -
Attachment is obsolete: true
Attachment #8780701 -
Flags: review?(shu)
Assignee | ||
Comment 5•8 years ago
|
||
I've incorporated both the null check and the hasLazyGroup check in dumpObject.
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/31530f6106bf
groupOf shell function should use getGroup(cx) to handle lazy groups properly. r=shu
Keywords: checkin-needed
Comment 7•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in
before you can comment on or make changes to this bug.
Description
•