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

Support for hot reload in DDC #54934

Open
1 of 15 tasks
sigmundch opened this issue Feb 15, 2024 · 0 comments
Open
1 of 15 tasks

Support for hot reload in DDC #54934

sigmundch opened this issue Feb 15, 2024 · 0 comments
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. web-dev-compiler

Comments

@sigmundch
Copy link
Member

sigmundch commented Feb 15, 2024

This is a meta issue to track any individual work towards support for hot reload in DDC.

The table below is just an approximation. It is meant to be updated periodically as we figure out plans, steps, and complete tasks.


  • Testing preparations:
    • (in progress) test harness for coverage and faster team iteration
    • add suite of test cases from VM tests
  • Representation changes
    • (in progress) Disentangle libraries from modules
    • Changes to library representation to allow updates to top-levels and classes
    • Enable new runtime type representation by default
    • Ensure indirection: all member access, including fields, can be updated
    • Changes to class representation to stop capturing type parameters via closures
    • Changes to scoping and hoisting: push down hoisted variables inside method bodies
  • Hot reload mechanics
    • Add internal state-management of hot reloads
    • Updating library and class objects in-place
    • Replacing field initializers to ensure existing objects reflect the correct value of newly added fields
    • Detection of rejection cases
  • Debugging support
    • Version management and source-map support
  • Integration
    • Unify module systems
    • Add hot reload workflows into dwds and flutter-tools
@sigmundch sigmundch added web-dev-compiler area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. labels Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. web-dev-compiler
Projects
None yet
Development

No branches or pull requests

1 participant