From f994568ef07d6c73cafe86e73520f5f14c9fb633 Mon Sep 17 00:00:00 2001 From: Joe Savona Date: Tue, 3 Jun 2025 17:00:21 -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]