From 59d825321d94c1f977abfd28ba4dcc15ae4910d3 Mon Sep 17 00:00:00 2001 From: Joe Savona Date: Fri, 6 Jun 2025 09:56:29 -0700 Subject: [PATCH] Update base for Update on "[compiler] First example of an aliasing signature (array push)" Adds an aliasing signature for Array.prototype.push and fixes up the logic for consuming these signatures during effect inference. As the test fixture shows, we correctly model the capturing. Mutable values that are captured into the array count as co-mutated if the array itself is transitively mutated later, while mutable values captured after such transitive mutation are not considered co-mutated. The implementation is based on the fact that the final `push` call is only locally mutating the array. During the phase that looks at local mutations we are only tracking direct aliases, and the push doesn't directly alias the items to the array, it only captures them. [ghstack-poisoned]