On 2/4/14 1:37 AM, Chris Peterson wrote:
Jeff, regarding proxies and JSClass
Note that we're currently sort of moving in the opposite direction: we just gave proxies distinct JSClasses.
More importantly, currently "proxy" implies all sorts of behaviors lumped into one, starting with "no shape and we'll deoptimize the heck out of you". In practice, we commonly want _some_ special behaviors (e.g. addProperty) without needing the full flexibility (and hence slowness) of proxies.
If the idea is to make it simpler to declare objects that only have some subset of custom behavior (custom name, custom addProperty, custom finalize hook) without having to customize everything, then I'm all for that. JSClass gives us that today. Proxies do not, as they stand.
-Boris _______________________________________________ dev-tech-js-engine-internals mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

