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

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

Issue 11416257: Revert "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),
168 new OptionHandler('--enable-native-live-type-analysis', passThrough), 167 new OptionHandler('--enable-native-live-type-analysis', passThrough),
169 new OptionHandler('--reject-deprecated-language-features', passThrough), 168 new OptionHandler('--reject-deprecated-language-features', passThrough),
170 new OptionHandler('--report-sdk-use-of-deprecated-language-features', 169 new OptionHandler('--report-sdk-use-of-deprecated-language-features',
171 passThrough), 170 passThrough),
172 171
173 // The following two options must come last. 172 // The following two options must come last.
174 new OptionHandler('-.*', (String argument) { 173 new OptionHandler('-.*', (String argument) {
175 helpAndFail('Error: Unknown option "$argument".'); 174 helpAndFail('Error: Unknown option "$argument".');
176 }), 175 }),
177 new OptionHandler('.*', (String argument) { 176 new OptionHandler('.*', (String argument) {
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 } catch (ignored) { 464 } catch (ignored) {
466 print('Internal error: error while printing exception'); 465 print('Internal error: error while printing exception');
467 } 466 }
468 try { 467 try {
469 print(trace); 468 print(trace);
470 } finally { 469 } finally {
471 exit(253); // 253 is recognized as a crash by our test scripts. 470 exit(253); // 253 is recognized as a crash by our test scripts.
472 } 471 }
473 } 472 }
474 } 473 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698