Closed Bug 1423231 Opened 8 years ago Closed 8 years ago

Remove unnecessary BaseShape::getUnowned calls from putAccessorProperty/putDataProperty

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: jandem, Assigned: jandem)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
We call BaseShape::getUnowned here, for instance: https://searchfox.org/mozilla-central/rev/ba2b0cf4d16711d37d4bf4d267b187c9a27f6638/js/src/vm/Shape.cpp#891 But it should be fine to just use the BaseShape* we already got here: https://searchfox.org/mozilla-central/rev/ba2b0cf4d16711d37d4bf4d267b187c9a27f6638/js/src/vm/Shape.cpp#842-848 I noticed this while working on a patch where this actually caused a bug, but we might as well fix this separately.
Attachment #8934563 - Flags: review?(bhackett1024)
Attachment #8934563 - Flags: review?(bhackett1024) → review+
Pushed by jandemooij@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/e1f3dfd40107 Remove redundant BaseShape::getUnowned calls from putAccessorProperty/putDataProperty. r=bhackett
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: