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

Side by Side Diff: pkg/compiler/lib/src/warnings.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: Addressed comment. 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 | « pkg/compiler/lib/src/compiler.dart ('k') | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 const DONT_KNOW_HOW_TO_FIX = "Computer says no!"; 7 const DONT_KNOW_HOW_TO_FIX = "Computer says no!";
8 8
9 /** 9 /**
10 * The messages in this file should meet the following guide lines: 10 * The messages in this file should meet the following guide lines:
(...skipping 2364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 $IMPORT_EXPERIMENTAL_MIRRORS_PADDING#{importChain} 2375 $IMPORT_EXPERIMENTAL_MIRRORS_PADDING#{importChain}
2376 * 2376 *
2377 * You can disable this message by using the --enable-experimental-mirrors 2377 * You can disable this message by using the --enable-experimental-mirrors
2378 * command-line flag. 2378 * command-line flag.
2379 * 2379 *
2380 * To learn what to do next, please visit: 2380 * To learn what to do next, please visit:
2381 * http://dartlang.org/dart2js-reflection 2381 * http://dartlang.org/dart2js-reflection
2382 **************************************************************** 2382 ****************************************************************
2383 '''); 2383 ''');
2384 2384
2385
2386 static const MessageKind MIRRORS_LIBRARY_NEW_EMITTER =
2387 const MessageKind(
2388 "dart:mirrors library is not supported when using the new emitter "
2389 "(DART_VM_OPTIONS='-Ddart2js.use.new.emitter=true')");
2390
2385 static const MessageKind CALL_NOT_SUPPORTED_ON_NATIVE_CLASS = 2391 static const MessageKind CALL_NOT_SUPPORTED_ON_NATIVE_CLASS =
2386 const MessageKind( 2392 const MessageKind(
2387 "Non-supported 'call' member on a native class, or a " 2393 "Non-supported 'call' member on a native class, or a "
2388 "subclass of a native class."); 2394 "subclass of a native class.");
2389 2395
2390 toString() => template; 2396 toString() => template;
2391 2397
2392 Message message([Map arguments = const {}, bool terse = false]) { 2398 Message message([Map arguments = const {}, bool terse = false]) {
2393 return new Message(this, arguments, terse); 2399 return new Message(this, arguments, terse);
2394 } 2400 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2442 static String convertToString(value) { 2448 static String convertToString(value) {
2443 if (value is ErrorToken) { 2449 if (value is ErrorToken) {
2444 // Shouldn't happen. 2450 // Shouldn't happen.
2445 return value.assertionMessage; 2451 return value.assertionMessage;
2446 } else if (value is Token) { 2452 } else if (value is Token) {
2447 value = value.value; 2453 value = value.value;
2448 } 2454 }
2449 return '$value'; 2455 return '$value';
2450 } 2456 }
2451 } 2457 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698