Skip to content

implement deferred loading in fasta #30273

@sigmundch

Description

@sigmundch

Tasks:

  • generate the loadlibrary instruction when calling deferred.loadLibrary
  • generate a top level method so represent a tearoff of loadLibrary (a method is needed to ensure that we preserve that two tearoffs are identical)
  • determine deferred-access patterns of dependencies used within a method (e.g. if a constant is accessed via deferred prefix, dart2js needs to know so it can put the constant in a separate output unit).
    status: done, but can be improved to be more precise and efficient by recording the information while parsing.
  • generate checks for deferred accesses.
  • generate compile-time errors for uses of deferred types in API declarations and inheritance (requires deeper changes in the outline builder)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions