chakra-core/ChakraCore

Optimize OP_LdCustomSpreadIteratorList for arguments object

Open

#1,230 创建于 2016年7月1日

在 GitHub 查看
 (10 评论) (0 反应) (0 负责人)JavaScript (9,000 star) (1,374 fork)batch import
PerformanceProposalSuggestiongood first issuehelp wanted

描述

I was looking into the code of OP_LdCustomSpreadIteratorList and noticed that we optimize it by not creating SpreadArgument if parameter passed to OP_LdCustomSpreadIteratorList does not have user defined iterator. We do this check only for JavascriptArray and TypedArrayBase and we can expand it for ArgumentsObject as well. As per spec, both unmapped and mapped argument objects has default @@iterator set to Array.proto.values.

贡献者指南

Optimize OP_LdCustomSpreadIteratorList for arguments object · chakra-core/ChakraCore#1230 | Good First Issue