From 15f2d6384cbded264bb30bc696da2152c4fbe826 Mon Sep 17 00:00:00 2001 From: Joe Savona Date: Wed, 4 Jun 2025 17:00:34 -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]