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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 /// Use this callback method to store references to specific libraries. 1213 /// Use this callback method to store references to specific libraries.
1214 /// Note that [library] has not been scanned yet, nor has its imports/exports 1214 /// Note that [library] has not been scanned yet, nor has its imports/exports
1215 /// been resolved. 1215 /// been resolved.
1216 void onLibraryCreated(LibraryElement library) { 1216 void onLibraryCreated(LibraryElement library) {
1217 Uri uri = library.canonicalUri; 1217 Uri uri = library.canonicalUri;
1218 if (uri == DART_CORE) { 1218 if (uri == DART_CORE) {
1219 coreLibrary = library; 1219 coreLibrary = library;
1220 } else if (uri == DART_NATIVE_TYPED_DATA) { 1220 } else if (uri == DART_NATIVE_TYPED_DATA) {
1221 typedDataLibrary = library; 1221 typedDataLibrary = library;
1222 } else if (uri == DART_MIRRORS) { 1222 } else if (uri == DART_MIRRORS) {
1223 if (const bool.fromEnvironment("dart2js.use.new.emitter")) {
1224 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.
1225 "dart:mirrors library is not supported when using the new emitter "
1226 "(DART_VM_OPTIONS='-Ddart2js.use.new.emitter=true')");
1227 }
1228
1223 mirrorsLibrary = library; 1229 mirrorsLibrary = library;
1224 } 1230 }
1225 backend.onLibraryCreated(library); 1231 backend.onLibraryCreated(library);
1226 } 1232 }
1227 1233
1228 /// This method is called immediately after the [library] and its parts have 1234 /// This method is called immediately after the [library] and its parts have
1229 /// been scanned. 1235 /// been scanned.
1230 /// 1236 ///
1231 /// Use this callback method to store references to specific member declared 1237 /// Use this callback method to store references to specific member declared
1232 /// in certain libraries. Note that [library] has not been patched yet, nor 1238 /// in certain libraries. Note that [library] has not been patched yet, nor
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
2408 return futureClass.computeType(compiler).createInstantiation([elementType]); 2414 return futureClass.computeType(compiler).createInstantiation([elementType]);
2409 } 2415 }
2410 2416
2411 @override 2417 @override
2412 InterfaceType streamType([DartType elementType = const DynamicType()]) { 2418 InterfaceType streamType([DartType elementType = const DynamicType()]) {
2413 return streamClass.computeType(compiler).createInstantiation([elementType]); 2419 return streamClass.computeType(compiler).createInstantiation([elementType]);
2414 } 2420 }
2415 } 2421 }
2416 2422
2417 typedef void InternalErrorFunction(Spannable location, String message); 2423 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW
« 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