chakra-core/ChakraCore

Optimize OP_LdCustomSpreadIteratorList for arguments object

Open

#1.230 geöffnet am 1. Juli 2016

Auf GitHub ansehen
 (10 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1.374 Forks)batch import
PerformanceProposalSuggestiongood first issuehelp wanted

Repository-Metriken

Stars
 (9.000 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide