Could we use a hidden prototype for arguments objects?
On Wed, Jun 25, 2014 at 12:16 PM, <wi...@igalia.com> wrote: > On 2014/06/25 15:55:05, arv wrote: > >> src/array-iterator.js:152: get: ArgumentsIteratorGetter, >> It is not clear to me why this cannot be a data property? >> > > It would be a per-object memory penalty, unless we can move the property > into > the map somehow. If it is in the object, it complicates matters for the > materializer, and is a not insignificant change implementation-wise. > > > With the current code, what does the descriptor look like for? >> > > Object.getOwnPropertyDescriptor(arguments, Symbol.iterator) >> > > {get: function ArgumentsIteratorGetter() { [native code] }, set: function > ArgumentsIteratorSetter() { [native code] }, enumerable: false, > configurable: > true} > > > > https://codereview.chromium.org/342453002/ > > -- > -- > v8-dev mailing list > v8-dev@googlegroups.com > http://groups.google.com/group/v8-dev > ---You received this message because you are subscribed to the Google > Groups "v8-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to v8-dev+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- erik -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.