63333deed6
This allows us TFA to analyze the iterator calls and we generate much tighter code in AOT. However, due to the increased inlining opportunities, we end up emitting 0.5% more code. Inlining of the _GrowableList iterator specifically also includes the concurrent modification check and error handling. Calls to get:iterator, moveNext and get:current account for 7.12% of all InstanceCall instructions in Flutter Gallery. Fixes https://github.com/dart-lang/sdk/issues/39516 Issue https://github.com/dart-lang/sdk/issues/39566 Issue https://github.com/dart-lang/sdk/issues/39565 Change-Id: I8dcc08b7571137e869a16ceea8cc73539eb02a5a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126381 Commit-Queue: Samir Jindel <sjindel@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com>