| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 runtime_configuration; | 5 library runtime_configuration; |
| 6 | 6 |
| 7 import 'dart:io' show Directory, File; | 7 import 'dart:io' show Directory, File; |
| 8 | 8 |
| 9 import 'compiler_configuration.dart' show CommandArtifact; | 9 import 'compiler_configuration.dart' show CommandArtifact; |
| 10 | 10 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 DartVmRuntimeConfiguration() : super._subclass(); | 177 DartVmRuntimeConfiguration() : super._subclass(); |
| 178 | 178 |
| 179 int computeTimeoutMultiplier( | 179 int computeTimeoutMultiplier( |
| 180 {String mode, bool isChecked: false, bool isReload: false, String arch}) { | 180 {String mode, bool isChecked: false, bool isReload: false, String arch}) { |
| 181 int multiplier = 1; | 181 int multiplier = 1; |
| 182 switch (arch) { | 182 switch (arch) { |
| 183 case 'simarm': | 183 case 'simarm': |
| 184 case 'arm': | 184 case 'arm': |
| 185 case 'simarmv6': | 185 case 'simarmv6': |
| 186 case 'armv6': | 186 case 'armv6': |
| 187 case ' simarmv5te': | 187 case 'simarmv5te': |
| 188 case 'armv5te': | 188 case 'armv5te': |
| 189 case 'simmips': | |
| 190 case 'mips': | |
| 191 case 'simarm64': | 189 case 'simarm64': |
| 192 case 'simdbc': | 190 case 'simdbc': |
| 193 case 'simdbc64': | 191 case 'simdbc64': |
| 194 multiplier *= 4; | 192 multiplier *= 4; |
| 195 break; | 193 break; |
| 196 } | 194 } |
| 197 if (mode == 'debug') { | 195 if (mode == 'debug') { |
| 198 multiplier *= 2; | 196 multiplier *= 2; |
| 199 if (isReload) { | 197 if (isReload) { |
| 200 multiplier *= 2; | 198 multiplier *= 2; |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { | 355 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { |
| 358 List<Command> computeRuntimeCommands( | 356 List<Command> computeRuntimeCommands( |
| 359 TestSuite suite, | 357 TestSuite suite, |
| 360 CommandBuilder commandBuilder, | 358 CommandBuilder commandBuilder, |
| 361 CommandArtifact artifact, | 359 CommandArtifact artifact, |
| 362 List<String> arguments, | 360 List<String> arguments, |
| 363 Map<String, String> environmentOverrides) { | 361 Map<String, String> environmentOverrides) { |
| 364 throw "Unimplemented runtime '$runtimeType'"; | 362 throw "Unimplemented runtime '$runtimeType'"; |
| 365 } | 363 } |
| 366 } | 364 } |
| OLD | NEW |