Commit 303106b
committed
Update on "[compiler] Add lowerContextAccess pass"
*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]File tree
2 files changed
+2
-3
lines changed- compiler/packages
- babel-plugin-react-compiler/src/__tests__/fixtures/compiler
- snap/src
2 files changed
+2
-3
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| 513 | + | |
513 | 514 | | |
514 | 515 | | |
515 | 516 | | |
0 commit comments