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

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

Issue 11598006: Concept of how dart:mirrors LibraryMirror, ClassMirror can be implemented in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added enough closure support to get tests/lib/mirrors/mirrors_test.dart pass. Created 7 years, 12 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: sdk/lib/_internal/compiler/implementation/enqueue.dart
diff --git a/sdk/lib/_internal/compiler/implementation/enqueue.dart b/sdk/lib/_internal/compiler/implementation/enqueue.dart
index ccba536ff45e49a92b41aa971b2dd794d0267341..b8cd09626b513921f40570d2937a0d028830cad4 100644
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart
@@ -117,6 +117,10 @@ class Enqueuer {
&& library.uri.toString() == 'dart:isolate') {
compiler.enableIsolateSupport(library);
}
+ else if (!compiler.hasMirrorsSupport()
+ && library.uri.toString() == 'dart:mirrors') {
+ compiler.enableMirrorsSupport(library);
+ }
nativeEnqueuer.registerElement(element);
}

Powered by Google App Engine
This is Rietveld 408576698