Descriptiondart2js: Recanonicalize selectors in static fields between runs.
This fixes a bug in batch-mode.
Selectors are canonicalized upon construction, so two equal selectors
are always the same object.
To avoid memory leaks in batch mode, the compiler clears the canonical
cache before each run.
However, some selectors were stored in static fields and thus shared
between runs. These selectors lost their canonical status when the
cache was cleared. This patch "fixes" that by reinserting them in
the cache after clearing it.
BUG=
R=johnniwinther@google.com
Committed: https://github.com/dart-lang/sdk/commit/392bed583cce5470913d378d1f7577cfd7d83974
Patch Set 1 #
Messages
Total messages: 5 (2 generated)
|