OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:convert'; | 6 import 'dart:convert'; |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 import 'compiler_configuration.dart'; | 9 import 'compiler_configuration.dart'; |
10 import 'http_server.dart'; | 10 import 'http_server.dart'; |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 static const ia32 = const Architecture._('ia32'); | 436 static const ia32 = const Architecture._('ia32'); |
437 static const x64 = const Architecture._('x64'); | 437 static const x64 = const Architecture._('x64'); |
438 static const arm = const Architecture._('arm'); | 438 static const arm = const Architecture._('arm'); |
439 static const armv6 = const Architecture._('armv6'); | 439 static const armv6 = const Architecture._('armv6'); |
440 static const armv5te = const Architecture._('armv5te'); | 440 static const armv5te = const Architecture._('armv5te'); |
441 static const arm64 = const Architecture._('arm64'); | 441 static const arm64 = const Architecture._('arm64'); |
442 static const simarm = const Architecture._('simarm'); | 442 static const simarm = const Architecture._('simarm'); |
443 static const simarmv6 = const Architecture._('simarmv6'); | 443 static const simarmv6 = const Architecture._('simarmv6'); |
444 static const simarmv5te = const Architecture._('simarmv5te'); | 444 static const simarmv5te = const Architecture._('simarmv5te'); |
445 static const simarm64 = const Architecture._('simarm64'); | 445 static const simarm64 = const Architecture._('simarm64'); |
446 static const mips = const Architecture._('mips'); | |
447 static const simmips = const Architecture._('simmips'); | |
448 static const simdbc = const Architecture._('simdbc'); | 446 static const simdbc = const Architecture._('simdbc'); |
449 static const simdbc64 = const Architecture._('simdbc64'); | 447 static const simdbc64 = const Architecture._('simdbc64'); |
450 | 448 |
451 static final List<String> names = _all.keys.toList(); | 449 static final List<String> names = _all.keys.toList(); |
452 | 450 |
453 static final _all = new Map<String, Architecture>.fromIterable([ | 451 static final _all = new Map<String, Architecture>.fromIterable([ |
454 ia32, | 452 ia32, |
455 x64, | 453 x64, |
456 arm, | 454 arm, |
457 armv6, | 455 armv6, |
458 armv5te, | 456 armv5te, |
459 arm64, | 457 arm64, |
460 simarm, | 458 simarm, |
461 simarmv6, | 459 simarmv6, |
462 simarmv5te, | 460 simarmv5te, |
463 simarm64, | 461 simarm64, |
464 mips, | |
465 simmips, | |
466 simdbc, | 462 simdbc, |
467 simdbc64 | 463 simdbc64 |
468 ], key: (Architecture architecture) => architecture.name); | 464 ], key: (Architecture architecture) => architecture.name); |
469 | 465 |
470 static Architecture find(String name) { | 466 static Architecture find(String name) { |
471 var architecture = _all[name]; | 467 var architecture = _all[name]; |
472 if (architecture != null) return architecture; | 468 if (architecture != null) return architecture; |
473 | 469 |
474 throw new ArgumentError('Unknown architecture "$name".'); | 470 throw new ArgumentError('Unknown architecture "$name".'); |
475 } | 471 } |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 | 751 |
756 case macos: | 752 case macos: |
757 return 'xcodebuild/'; | 753 return 'xcodebuild/'; |
758 } | 754 } |
759 | 755 |
760 throw "unreachable"; | 756 throw "unreachable"; |
761 } | 757 } |
762 | 758 |
763 String toString() => "System($name)"; | 759 String toString() => "System($name)"; |
764 } | 760 } |
OLD | NEW |