Skip to content

dart2js: elide type information for functions that are not type-tested #35915

Open
@rakudrama

Description

@rakudrama

In type inference we do tracing to see if the Function.apply metadata is unused because k-bounded tracing is exhaustive and does not flow to Function.apply. This lets dart2js omit the metadata for about half of the closures (example - closures passed to List.map).

We should do something similar for the function $signature. All the functions could simply have the type Function, unless they flow to .runtimeType.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions