On 2/24/15 10:10 AM, obastemur wrote:
Add/Enable private slot for a JS land object or an object without a private
slot.
- JS_Add/EnablePrivateSlot
So this requires:
1) Moving the object (since its size will change). Maybe not a
problem now that GC can move things too.
2) Changing the object's class/shape/etc (because you just changed the
slot layout).
3) Probably invalidating jitcode, unless part 2 is done _very_
carefully.
What are you using the private slot for? Is there a reason you can't
use object metadata instead (e.g. this is very performance-sensitive)?
Also, what do you plan to do with objects that _do_ already have a
private slot and use it?
-Boris
_______________________________________________
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals