Skip to content

Commit

Permalink
Update on "[compiler] Add lowerContextAccess pass"
Browse files Browse the repository at this point in the history
*This is only for internal profiling, not intended to ship.*

This pass is intended to be used with #30407.

This pass synthesizes selector functions by collecting immediately
destructured context acesses. We bailout for other types of context
access.

This pass lowers context access to use a selector function by passing
the synthesized selector function as the second argument.

[ghstack-poisoned]
  • Loading branch information
gsathya committed Aug 2, 2024
2 parents d39f2fd + b9031f7 commit 0904479
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ function getContextKeys(value: Destructure): Array<string> | null {

case 'ObjectPattern': {
for (const place of pattern.properties) {
debugger;
if (
place.kind !== 'ObjectProperty' ||
place.type !== 'property' ||
Expand Down

0 comments on commit 0904479

Please sign in to comment.