Skip to content

dart2js: Inline single-reference constants into other constants #25230

@rakudrama

Description

@rakudrama

Some constants in the constant pool contain references to other constants where the reference is the only reference to that constant.
The constant expression could be moved to the site of the reference and avoid needing the name.
Example: this is often true of the list of keys for a map constant.

We might have to take care and keep some references to limit the size of any one expression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.dart2js-optimizationtype-enhancementA request for a change that isn't a bugweb-dart2js

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions