Re: [v8-users] Intent to ship: ES6 Map Set

2014-05-07 Thread Vyacheslav Egorov
What are the performance characteristics and memory footprint one can expect from Map Set? I would like to point out that a lot of built-in features that V8 and other JS VMs implement (e.g. Array.prototype.forEach) are never used because they are perceived as slow (and they are actually slow for

[v8-users] Intercepter callback on ObjectTemplate.

2014-05-07 Thread Jane Chen
With v8 for any JavaScript object foo, I can call: for (var key in foo) {print(key+:+foo[key]);}; Is there a way for me to get a callback from the above for...in loop? In other words, can I register an interceptor callback for the for..in access of foo? -- -- v8-users mailing list

Re: [v8-users] Intercepter callback on ObjectTemplate.

2014-05-07 Thread Michael Starzinger
The NamedPropertyEnumeratorCallback in ObjectTemplate::SetNamedPropertyHandler() is your friend. Best regards, Michael On Wed, May 7, 2014 at 10:59 PM, Jane Chen jxche...@gmail.com wrote: With v8 for any JavaScript object foo, I can call: for (var key in foo) {print(key+:+foo[key]);}; Is

Re: [v8-users] Intercepter callback on ObjectTemplate.

2014-05-07 Thread Jane Chen
O, got it! Will give it a try... Thanks a lot! On Wednesday, May 7, 2014 2:53:12 PM UTC-7, Michael Starzinger wrote: The NamedPropertyEnumeratorCallback in ObjectTemplate::SetNamedPropertyHandler() is your friend. Best regards, Michael On Wed, May 7, 2014 at 10:59 PM, Jane Chen