76167c002d
Certain optimizations are disabled when compiling huge functions. Also, compiling large functions may cause out of memory in compiler. This change adds a warning in order to make it easier for users to find out about huge functions in their programs and diagnose OOM during compilation. TEST=ci Issue: https://github.com/flutter/flutter/issues/94461 Change-Id: Ibc7fb69df21fa96b8159d24c1b71ef8d690b23df Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/230160 Reviewed-by: Slava Egorov <vegorov@google.com> Reviewed-by: Siva Annamalai <asiva@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>