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

Side by Side Diff: pkg/compiler/lib/src/dart2js.dart

Issue 707463003: Support enums in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 1 month 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') | pkg/compiler/lib/src/elements/elements.dart » ('j') | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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.cmdline; 5 library dart2js.cmdline;
6 6
7 import 'dart:async' 7 import 'dart:async'
8 show Future, EventSink; 8 show Future, EventSink;
9 import 'dart:convert' show UTF8, LineSplitter; 9 import 'dart:convert' show UTF8, LineSplitter;
10 import 'dart:io' 10 import 'dart:io'
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 new OptionHandler('--disable-native-live-type-analysis', passThrough), 317 new OptionHandler('--disable-native-live-type-analysis', passThrough),
318 new OptionHandler('--categories=.*', setCategories), 318 new OptionHandler('--categories=.*', setCategories),
319 new OptionHandler('--disable-type-inference', implyCompilation), 319 new OptionHandler('--disable-type-inference', implyCompilation),
320 new OptionHandler('--terse', passThrough), 320 new OptionHandler('--terse', passThrough),
321 new OptionHandler('--dump-info', implyCompilation), 321 new OptionHandler('--dump-info', implyCompilation),
322 new OptionHandler('--disallow-unsafe-eval', 322 new OptionHandler('--disallow-unsafe-eval',
323 (_) => hasDisallowUnsafeEval = true), 323 (_) => hasDisallowUnsafeEval = true),
324 new OptionHandler('--show-package-warnings', passThrough), 324 new OptionHandler('--show-package-warnings', passThrough),
325 new OptionHandler('--csp', passThrough), 325 new OptionHandler('--csp', passThrough),
326 new OptionHandler('--enable-async', setEnableAsync), 326 new OptionHandler('--enable-async', setEnableAsync),
327 new OptionHandler('--enable-enum', passThrough),
327 new OptionHandler('-D.+=.*', addInEnvironment), 328 new OptionHandler('-D.+=.*', addInEnvironment),
328 329
329 // The following two options must come last. 330 // The following two options must come last.
330 new OptionHandler('-.*', (String argument) { 331 new OptionHandler('-.*', (String argument) {
331 helpAndFail("Unknown option '$argument'."); 332 helpAndFail("Unknown option '$argument'.");
332 }), 333 }),
333 new OptionHandler('.*', (String argument) { 334 new OptionHandler('.*', (String argument) {
334 arguments.add(nativeToUriPath(argument)); 335 arguments.add(nativeToUriPath(argument));
335 }) 336 })
336 ]; 337 ];
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 } else if (exitCode == 253) { 680 } else if (exitCode == 253) {
680 print(">>> TEST CRASH"); 681 print(">>> TEST CRASH");
681 } else { 682 } else {
682 print(">>> TEST FAIL"); 683 print(">>> TEST FAIL");
683 } 684 }
684 stderr.writeln(">>> EOF STDERR"); 685 stderr.writeln(">>> EOF STDERR");
685 subscription.resume(); 686 subscription.resume();
686 }); 687 });
687 }); 688 });
688 } 689 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698