Feature #161

avatar

Object.defineProperty should use JSPROP_SHARED for getters/setters

Added by Ash Berlin 260 days ago. Updated 199 days ago.

Status:Feedback Start:11/11/2009
Priority:Low Due date:
Assigned to:- % Done:

0%

Category:Core
Target version:0.10

Description

Speaking with jorendorff in #jsapi, it turns out that when you create a property with a getter/setter you should use the JSPROP_SHARED flag to avoid spidermonkey needlessly creating an extra slot. Its not much memory, but it makes sense to do and is an easy fix.

History

Updated by Aristid Breitkreuz 240 days ago

avatar
  • Status changed from New to Feedback
  • Target version set to 0.9

Is there any drawback to this? If not, we should go for it.

Updated by Aristid Breitkreuz 239 days ago

avatar
  • Tracker changed from Bug to Feature

Updated by Aristid Breitkreuz 199 days ago

avatar
  • Target version changed from 0.9 to 0.10

Also available in: Atom PDF