Skip to content

Commit 303106b

Browse files
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]
2 parents bb6f42b + 31a096a commit 303106b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/lower-context-acess-multiple.expect.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,4 @@ function _temp(t0) {
3838
}
3939

4040
```
41-
42-
### Eval output
43-
(kind: exception) Fixture not implemented
41+

compiler/packages/snap/src/SproutTodoFilter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ const skipFilter = new Set([
510510
'todo.lower-context-access-destructure-multiple',
511511
'todo.lower-context-access-array-destructuring',
512512
'lower-context-selector-simple',
513+
'lower-context-acess-multiple',
513514
]);
514515

515516
export default skipFilter;

0 commit comments

Comments
 (0)