[KT-57607] Fix performance of ArrayList.addAll methods in JS stdlib (#5116)

* Fix performance of ArrayList.addAll methods in JS stdlib: extend the backing array and copy elements manually
* Update expected reachable nodes after DCE in test data

---------

Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com>
This commit is contained in:
deotime
2023-04-05 13:18:11 -05:00
committed by GitHub
parent 11b7fe2c4a
commit 7aaba3b78a
2 changed files with 18 additions and 6 deletions
@@ -1,6 +1,6 @@
// IGNORE_FIR
// KJS_WITH_FULL_RUNTIME
// EXPECTED_REACHABLE_NODES: 1819
// EXPECTED_REACHABLE_NODES: 2002
// MODULE: lib1
// FILE: lib1.kt
package lib1