When an Object is created on the JS land, it doesn't have a private slot. I'm 
adding an extra object property on the native side and managing the private 
slot for these objects. 

Is it possible to have below list of features;

Add/Enable private slot for a JS land object or an object without a private 
slot.
- JS_Add/EnablePrivateSlot


Give indexed access to JS side object from given memory address. 

- JS_SetExternalArrayDataIndex(JSObject, void *memory, int byte_size or 
enumaration also works, int length)


Above 2 items could help a lot with the jxcore buffer support. The current 
implementation also works (I did a very ugly hack for that) but the performance 
is a pain.. especially when someone is accessing to the buffer.

_______________________________________________
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

Reply via email to