| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 : super._subclass(); | 162 : super._subclass(); |
| 163 | 163 |
| 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' simarmv5te': |
| 172 case 'armv5te': | 173 case 'armv5te': |
| 173 case 'simmips': | 174 case 'simmips': |
| 174 case 'mips': | 175 case 'mips': |
| 175 case 'simarm64': | 176 case 'simarm64': |
| 176 multiplier *= 4; | 177 multiplier *= 4; |
| 177 break; | 178 break; |
| 178 } | 179 } |
| 179 if (isDebug) { | 180 if (isDebug) { |
| 180 multiplier *= 2; | 181 multiplier *= 2; |
| 181 } | 182 } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { | 224 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { |
| 224 List<Command> computeRuntimeCommands( | 225 List<Command> computeRuntimeCommands( |
| 225 TestSuite suite, | 226 TestSuite suite, |
| 226 CommandBuilder commandBuilder, | 227 CommandBuilder commandBuilder, |
| 227 CommandArtifact artifact, | 228 CommandArtifact artifact, |
| 228 List<String> arguments, | 229 List<String> arguments, |
| 229 Map<String, String> environmentOverrides) { | 230 Map<String, String> environmentOverrides) { |
| 230 throw "Unimplemented runtime '$runtimeType'"; | 231 throw "Unimplemented runtime '$runtimeType'"; |
| 231 } | 232 } |
| 232 } | 233 } |
| OLD | NEW |