Index: lib/compiler/implementation/enqueue.dart |
diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart |
index da3f90833c6f22e3dd398d28d6dddee44e1e643f..b5c6d4d55803600d4d854a4785de6868b3d26fcc 100644 |
--- a/lib/compiler/implementation/enqueue.dart |
+++ b/lib/compiler/implementation/enqueue.dart |
@@ -103,6 +103,8 @@ class Enqueuer { |
compiler.enabledRuntimeType = true; |
} else if (element == compiler.functionApplyMethod) { |
compiler.enabledFunctionApply = true; |
+ } else if (element == compiler.invokeOnMethod) { |
+ compiler.enabledInvokeOn = true; |
} |
// Enable isolate support if we start using something from the |
@@ -247,6 +249,11 @@ class Enqueuer { |
String message = "$name != ${selector.name} (${selector.kind})"; |
compiler.internalError("Wrong selector name: $message."); |
} |
+ /*if (!compiler.enabledInvokeOn && name == Compiler.INVOKE_ON) { |
ngeoffray
2012/10/26 08:34:55
Remove comment.
Johnni Winther
2012/10/26 10:18:01
Done.
|
+ if (selector.applies(compiler.invokeOnMethod, compiler)) { |
+ compiler.enabledInvokeOn = true; |
+ } |
+ }*/ |
Set<Selector> selectors = |
selectorsMap.putIfAbsent(name, () => new Set<Selector>()); |
if (!selectors.contains(selector)) { |