Files
sdk/pkg/compiler/lib
Nate Biggs 1b2aebc41b [dart2js] Modify implicit checks analysis to avoid stack overflow on wide class hierarchies.
By having _addImplicitChecks add all the checks to implicitIsChecks before recursing into them, we avoid exploring each new check via recursion.

For a wide enough class hierarchy where one check implies many other checks, the recursive visiting pattern could lead to stack overflows.

Change-Id: I7f50af4e8c0859ac77da143ade68cc3d9e2cc503
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/362403
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2024-04-12 19:51:40 +00:00
..