| 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 'compiler_configuration.dart' show | 7 import 'compiler_configuration.dart' show |
| 8 CommandArtifact; | 8 CommandArtifact; |
| 9 | 9 |
| 10 // TODO(ahe): Remove this import, we can precompute all the values required | 10 // TODO(ahe): Remove this import, we can precompute all the values required |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 int computeTimeoutMultiplier({ | 164 int computeTimeoutMultiplier({ |
| 165 bool isDebug: false, | 165 bool isDebug: false, |
| 166 bool isChecked: false, | 166 bool isChecked: false, |
| 167 String arch}) { | 167 String arch}) { |
| 168 int multiplier = 1; | 168 int multiplier = 1; |
| 169 switch (arch) { | 169 switch (arch) { |
| 170 case 'simarm': | 170 case 'simarm': |
| 171 case 'arm': | 171 case 'arm': |
| 172 case 'simmips': | 172 case 'simmips': |
| 173 case 'mips': | 173 case 'mips': |
| 174 case 'simarm64': |
| 174 multiplier *= 4; | 175 multiplier *= 4; |
| 175 break; | 176 break; |
| 176 } | 177 } |
| 177 if (isDebug) { | 178 if (isDebug) { |
| 178 multiplier *= 2; | 179 multiplier *= 2; |
| 179 } | 180 } |
| 180 return multiplier; | 181 return multiplier; |
| 181 } | 182 } |
| 182 } | 183 } |
| 183 | 184 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { | 222 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { |
| 222 List<Command> computeRuntimeCommands( | 223 List<Command> computeRuntimeCommands( |
| 223 TestSuite suite, | 224 TestSuite suite, |
| 224 CommandBuilder commandBuilder, | 225 CommandBuilder commandBuilder, |
| 225 CommandArtifact artifact, | 226 CommandArtifact artifact, |
| 226 List<String> arguments, | 227 List<String> arguments, |
| 227 Map<String, String> environmentOverrides) { | 228 Map<String, String> environmentOverrides) { |
| 228 throw "Unimplemented runtime '$runtimeType'"; | 229 throw "Unimplemented runtime '$runtimeType'"; |
| 229 } | 230 } |
| 230 } | 231 } |
| OLD | NEW |