Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Unified Diff: lib/compiler/implementation/enqueue.dart

Issue 11264005: InvocationMirror implemented in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Working version Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)) {

Powered by Google App Engine
This is Rietveld 408576698