Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[compiler] Introduce OutlinedFunctionExpression HIR #30088

Closed
wants to merge 2 commits into from

Conversation

gsathya
Copy link
Contributor

@gsathya gsathya commented Jun 25, 2024

Stack from ghstack (oldest at bottom):

This is very similar to the existing FunctionExpression HIR node
intentionally, so that we can share all the infra between them.

There's a new outlinedFunc field on this that will hold the newly
created function that needs to be compiled outside the function body.

The loweredFunc will hold the updated HIR for rendering the
outlinedFunc in the callback.

This is very similar to the existing FunctionExpression HIR node
intentionally, so that we can share all the infra between them.

There's a new `outlinedFunc` field on this that will hold the newly
created function that needs to be compiled outside the function body.

The `loweredFunc` will hold the updated HIR for rendering the
outlinedFunc in the callback.

[ghstack-poisoned]
Copy link

vercel bot commented Jun 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 25, 2024 4:24pm

@react-sizebot
Copy link

react-sizebot commented Jun 25, 2024

Comparing: f5d2feb...14848e0

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB +0.11% 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 497.93 kB 497.93 kB = 89.26 kB 89.26 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB +0.11% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 502.75 kB 502.75 kB = 89.96 kB 89.96 kB
facebook-www/ReactDOM-prod.classic.js = 597.10 kB 597.10 kB = 105.31 kB 105.31 kB
facebook-www/ReactDOM-prod.modern.js = 571.44 kB 571.44 kB = 101.24 kB 101.24 kB
test_utils/ReactAllWarnings.js Deleted 62.88 kB 0.00 kB Deleted 15.69 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
test_utils/ReactAllWarnings.js Deleted 62.88 kB 0.00 kB Deleted 15.69 kB 0.00 kB

Generated by 🚫 dangerJS against 14848e0

This is very similar to the existing FunctionExpression HIR node
intentionally, so that we can share all the infra between them.

There's a new `outlinedFunc` field on this that will hold the newly
created function that needs to be compiled outside the function body.

The `loweredFunc` will hold the updated HIR for rendering the
outlinedFunc in the callback.

[ghstack-poisoned]
Copy link
Contributor

@josephsavona josephsavona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gsathya gsathya closed this Jul 25, 2024
@gsathya gsathya deleted the gh/gsathya/5/head branch July 25, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants