72eb59f32a
Previously all arrays were excluded from WB elimination pass to avoid invariant restoration code creating excessive work for the GC and to avoid dealing with card marking in the invariant restoration code. It seems reasonable to enable this for small arrays of up to 8 elements. The cut of point of 8 elements was chosen based on the cut of point for literal<N> specialisations provided by the core library for creating small literal arrays. TEST=vm/cc/IRTest_WriteBarrierElimination_Arrays Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-dwarf-linux-product-x64-try,vm-kernel-precomp-linux-debug-simarm_x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-kernel-precomp-linux-debug-x64c-try,vm-kernel-precomp-linux-product-x64-try,vm-kernel-precomp-linux-release-simarm-try,vm-kernel-precomp-linux-release-simarm64-try,vm-kernel-precomp-linux-release-simarm_x64-try,vm-kernel-precomp-linux-release-x64-try Change-Id: I2b3169865f07c3ff95820c1bc6718943e96bd33b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/229903 Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Slava Egorov <vegorov@google.com>