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

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: Optimization + updated cf comments. 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 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)) {

Powered by Google App Engine
This is Rietveld 408576698