From 93e24f467eb022192c86eaca512cde90eddedb39 Mon Sep 17 00:00:00 2001 From: Joe Savona Date: Wed, 28 May 2025 22:27:20 -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]