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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/dart2js.dart

Issue 11299220: Add @JSName annotation for native fields and methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
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 library dart2js; 5 library dart2js;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:uri'; 8 import 'dart:uri';
9 import 'dart:utf'; 9 import 'dart:utf';
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 (_) => enableColors = false), 157 (_) => enableColors = false),
158 new OptionHandler('--enable-diagnostic-colors', (_) => enableColors = true), 158 new OptionHandler('--enable-diagnostic-colors', (_) => enableColors = true),
159 new OptionHandler('--enable[_-]checked[_-]mode|--checked', 159 new OptionHandler('--enable[_-]checked[_-]mode|--checked',
160 (_) => passThrough('--enable-checked-mode')), 160 (_) => passThrough('--enable-checked-mode')),
161 new OptionHandler('--enable-concrete-type-inference', 161 new OptionHandler('--enable-concrete-type-inference',
162 (_) => passThrough('--enable-concrete-type-inference')), 162 (_) => passThrough('--enable-concrete-type-inference')),
163 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), 163 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true),
164 new OptionHandler('--package-root=.+|-p.+', setPackageRoot), 164 new OptionHandler('--package-root=.+|-p.+', setPackageRoot),
165 new OptionHandler('--disallow-unsafe-eval', passThrough), 165 new OptionHandler('--disallow-unsafe-eval', passThrough),
166 new OptionHandler('--analyze-all', passThrough), 166 new OptionHandler('--analyze-all', passThrough),
167 new OptionHandler('--disable-native-live-type-analysis', passThrough),
167 new OptionHandler('--enable-native-live-type-analysis', passThrough), 168 new OptionHandler('--enable-native-live-type-analysis', passThrough),
168 new OptionHandler('--reject-deprecated-language-features', passThrough), 169 new OptionHandler('--reject-deprecated-language-features', passThrough),
169 new OptionHandler('--report-sdk-use-of-deprecated-language-features', 170 new OptionHandler('--report-sdk-use-of-deprecated-language-features',
170 passThrough), 171 passThrough),
171 172
172 // The following two options must come last. 173 // The following two options must come last.
173 new OptionHandler('-.*', (String argument) { 174 new OptionHandler('-.*', (String argument) {
174 helpAndFail('Error: Unknown option "$argument".'); 175 helpAndFail('Error: Unknown option "$argument".');
175 }), 176 }),
176 new OptionHandler('.*', (String argument) { 177 new OptionHandler('.*', (String argument) {
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 } catch (ignored) { 465 } catch (ignored) {
465 print('Internal error: error while printing exception'); 466 print('Internal error: error while printing exception');
466 } 467 }
467 try { 468 try {
468 print(trace); 469 print(trace);
469 } finally { 470 } finally {
470 exit(253); // 253 is recognized as a crash by our test scripts. 471 exit(253); // 253 is recognized as a crash by our test scripts.
471 } 472 }
472 } 473 }
473 } 474 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698