On 2/27/14, 5:02 AM, Brendan Eich wrote:
> Fitzgerald, Nick wrote:
>> Or in self hosted code, right? Maybe the iterator { value, done }
>> objects?
>
> Are we optimizing away { value, done } objects that can't escape (from
> iterators run afresh by for-of loops)?
No, except in the relatively rare, but easily optimized, case of a C++
loop over a ForOfIterator (bug 952891) as opposed to an actual JS for-of
statement.
The bug for the JS case is on file, FWIW:
Bug 927548 - consider implementing scalar replacement optimization
https://bugzilla.mozilla.org/show_bug.cgi?id=927548
-j
_______________________________________________
dev-tech-js-engine-internals mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals