Closed Bug 828293 Opened 12 years ago Closed 12 years ago

Root js_NativeSet's vp argument

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

Details

Attachments

(1 file)

Attached patch Patch v1 (deleted) — Splinter Review
No description provided.
Attachment #699742 - Flags: review?(terrence)
Comment on attachment 699742 [details] [diff] [review] Patch v1 Review of attachment 699742 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/jsobj.cpp @@ +3311,5 @@ > * unless the setter deleted the shape. > */ > if (shape->hasSlot() && > (JS_LIKELY(cx->runtime->propertyRemovals == sample) || > obj->nativeContains(cx, shape))) { Since you're here, move the brace to a new line. @@ +3312,5 @@ > */ > if (shape->hasSlot() && > (JS_LIKELY(cx->runtime->propertyRemovals == sample) || > obj->nativeContains(cx, shape))) { > + AddTypePropertyId(cx, obj, shape->propid(), ovp); I would think that vp.get() would work here instead of having to re-root it: if that doesn't work we should figure out why.
Attachment #699742 - Flags: review?(terrence) → review+
(In reply to Terrence Cole [:terrence] from comment #1) > Comment on attachment 699742 [details] [diff] [review] > Patch v1 > > Review of attachment 699742 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: js/src/jsobj.cpp > @@ +3311,5 @@ > > * unless the setter deleted the shape. > > */ > > if (shape->hasSlot() && > > (JS_LIKELY(cx->runtime->propertyRemovals == sample) || > > obj->nativeContains(cx, shape))) { > > Since you're here, move the brace to a new line. > > @@ +3312,5 @@ > > */ > > if (shape->hasSlot() && > > (JS_LIKELY(cx->runtime->propertyRemovals == sample) || > > obj->nativeContains(cx, shape))) { > > + AddTypePropertyId(cx, obj, shape->propid(), ovp); > > I would think that vp.get() would work here instead of having to re-root it: > if that doesn't work we should figure out why. I think because vp has changed by then.
Blocks: ExactRooting
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: