Closed Bug 1128648 Opened 9 years ago Closed 9 years ago

Remove fretting about DynamicWithObject in Shape::set

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: jorendorff, Assigned: jorendorff)

Details

Attachments

(3 files, 1 obsolete file)

Old old old old code, as indicated by the comment's reference to "it", a demo object that was removed from the shell years ago. A lot has changed since.

The fact that the obj argument can simply be changed from HandleObject to HandleNativeObject, without other changes, explains why it's safe to remove the old special case. WithObjects aren't native.
/r/3263 - Bug 1128648 - Remove fretting about DynamicWithObject in Shape::set. r??efaust.

Pull down this commit:

hg pull review -r b04e74d1ddaa3a7f86655a04e7302d87e1befeb6
Comment on attachment 8558086 [details]
MozReview Request: bz://1128648/jorendorff

/r/3263 - Bug 1128648 - Remove fretting about DynamicWithObject in Shape::set. r?efaust.

Pull down this commit:

hg pull review -r 3c1ac8c9c29755a42ad2a549fe9e3635ad003b48
<evilpie> jorendorff: you wish! nobody bothered to set non_native on with yet

Tom's right. I filed bug 1128681 to give a permanent home to this outrage, and added an assertion in Shape::set. The shell tests do not trip the assertion; we'll see what a try run turns up.
Comment on attachment 8558086 [details]
MozReview Request: bz://1128648/jorendorff

/r/3263 - Bug 1128648 - Remove fretting about DynamicWithObject in Shape::set. r?efaust.

Pull down this commit:

hg pull review -r 3c1ac8c9c29755a42ad2a549fe9e3635ad003b48
Attachment #8558086 - Flags: review?(efaustbmo)
Attachment #8558086 - Flags: review?(efaustbmo) → review+
Comment on attachment 8558086 [details]
MozReview Request: bz://1128648/jorendorff

https://reviewboard.mozilla.org/r/3261/#review2685

LGTM. We will want to make sure we get the WithObject stuff cleaned up, and ensure that they stop flowing through Shape::set if that's unsafe.
Comment on attachment 8558086 [details]
MozReview Request: bz://1128648/jorendorff

/r/3263 - Bug 1128648 - Remove fretting about DynamicWithObject in Shape::set. r=efaust.
/r/3311 - Bug 1128732 - Simplify js::DefineProperties. r?efaust.
/r/3313 - Bug 1129275 - Remove extra js::SetProperty template. r?efaust.

Pull down these commits:

hg pull review -r 12796fabc54b3f83be57b22546420c36737b85a8
Attachment #8558086 - Flags: review+ → review?(efaustbmo)
Comment on attachment 8558086 [details]
MozReview Request: bz://1128648/jorendorff

Wat. I didn't mean to attach anything to this bug. I pushed a different patch (unrelated to this bug) for review. Setting the flag back to r+.
Attachment #8558086 - Flags: review?(efaustbmo) → review+
https://reviewboard.mozilla.org/r/3263/#review2717

Looks good again.

::: js/src/vm/Shape-inl.h
(Diff revision 3)
> +    MOZ_ASSERT(!obj->is<DynamicWithObject>());  // See bug 1128681.

This makes me feel much better about things.
https://hg.mozilla.org/mozilla-central/rev/e4232dc24dc1
Assignee: nobody → jorendorff
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Attachment #8558086 - Attachment is obsolete: true
Attachment #8619291 - Flags: review+
Attachment #8619292 - Flags: review+
Attachment #8619293 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: