Chromium Code Reviews| Index: lib/compiler/implementation/enqueue.dart |
| diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart |
| index 0e97273d4f827585537d6668d78255c2602422ba..ac9e993a81dd07f181ea2a5239aa0d72a8c81c49 100644 |
| --- a/lib/compiler/implementation/enqueue.dart |
| +++ b/lib/compiler/implementation/enqueue.dart |
| @@ -247,6 +247,11 @@ class Enqueuer { |
| String message = "$name != ${selector.name} (${selector.kind})"; |
| compiler.internalError("Wrong selector name: $message."); |
| } |
| + if (!compiler.enabledInvokeOn && name == Compiler.INVOKE_ON) { |
| + if (selector.applies(compiler.invokeOnMethod, compiler)) { |
|
bakster
2012/10/24 13:43:04
Why two if statements when you have three expressi
Johnni Winther
2012/10/25 13:34:56
Test removed.
|
| + compiler.enabledInvokeOn = true; |
| + } |
| + } |
| Set<Selector> selectors = |
| selectorsMap.putIfAbsent(name, () => new Set<Selector>()); |
| if (!selectors.contains(selector)) { |