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

Unified Diff: pkg/compiler/lib/src/compiler.dart

Issue 963753002: dart2Js: bailout early when using the new emitter with mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index 5427478abab9278d3dc11d409734ffd150fd40d9..12ad4a787e05fe3c14d9f837b63924d17398b9fb 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -1220,6 +1220,12 @@ abstract class Compiler implements DiagnosticListener {
} else if (uri == DART_NATIVE_TYPED_DATA) {
typedDataLibrary = library;
} else if (uri == DART_MIRRORS) {
+ if (const bool.fromEnvironment("dart2js.use.new.emitter")) {
+ internalError(library,
floitsch 2015/02/27 14:05:50 This should not be an internal error, but a "repor
zarah 2015/03/02 10:42:36 Done.
+ "dart:mirrors library is not supported when using the new emitter "
+ "(DART_VM_OPTIONS='-Ddart2js.use.new.emitter=true')");
+ }
+
mirrorsLibrary = library;
}
backend.onLibraryCreated(library);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698