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

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

Issue 10389063: Implement PrimitiveOrNull types. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 String path = nativeToUriPath(extractParameter(argument)); 68 String path = nativeToUriPath(extractParameter(argument));
69 if (!path.endsWith("/")) path = "$path/"; 69 if (!path.endsWith("/")) path = "$path/";
70 libraryRoot = cwd.resolve(path); 70 libraryRoot = cwd.resolve(path);
71 }), 71 }),
72 new OptionHandler('--out=.*', (String argument) { 72 new OptionHandler('--out=.*', (String argument) {
73 out = cwd.resolve(nativeToUriPath(extractParameter(argument))); 73 out = cwd.resolve(nativeToUriPath(extractParameter(argument)));
74 }), 74 }),
75 new OptionHandler('--allow-mock-compilation', passThrough), 75 new OptionHandler('--allow-mock-compilation', passThrough),
76 new OptionHandler('--no-colors', (_) => colors.enabled = false), 76 new OptionHandler('--no-colors', (_) => colors.enabled = false),
77 new OptionHandler('--enable-checked-mode|--checked|-c', 77 new OptionHandler('--enable-checked-mode|--checked|-c',
78 (_) => passThrough('--enable_checked_mode')), 78 (_) => passThrough('--enable-checked-mode')),
79 new OptionHandler('--help', (_) => helpAndExit()), 79 new OptionHandler('--help', (_) => helpAndExit()),
80 // The following two options must come last. 80 // The following two options must come last.
81 new OptionHandler('-.*', (String argument) { 81 new OptionHandler('-.*', (String argument) {
82 fail('Error: unknown option "$argument".'); 82 fail('Error: unknown option "$argument".');
83 }), 83 }),
84 new OptionHandler('.*', (String argument) { 84 new OptionHandler('.*', (String argument) {
85 arguments.add(nativeToUriPath(argument)); 85 arguments.add(nativeToUriPath(argument));
86 }) 86 })
87 ]; 87 ];
88 88
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 } catch (var ignored) { 223 } catch (var ignored) {
224 print('Internal error: error while printing exception'); 224 print('Internal error: error while printing exception');
225 } 225 }
226 try { 226 try {
227 print(trace); 227 print(trace);
228 } finally { 228 } finally {
229 exit(253); // 253 is recognized as a crash by our test scripts. 229 exit(253); // 253 is recognized as a crash by our test scripts.
230 } 230 }
231 } 231 }
232 } 232 }
OLDNEW
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/builder.dart » ('j') | lib/compiler/implementation/ssa/types.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698