Descriptiondart2js: Fix of deferred static functions.
When deferred static functions go to a different output hunk than the
class they are defined in the emitter got problems with outputting them.
We could say that static functions always go to the same output-unit as
their class, and this is needed to support reflection. But we already
handle it that way when reflection is needed. In deferred_load.dart:
void addLiveInstanceMember(Element element) {
if (!compiler.enqueuer.resolution.hasBeenResolved(element)) return;
if (!isMirrorUsage && !element.isInstanceMember) return;
collectDependencies(element.implementation);
}
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=42389
Patch Set 1 : #
Total comments: 2
Patch Set 2 : Improve tests #
Messages
Total messages: 6 (2 generated)
|