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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 : super._subclass(); | 165 : super._subclass(); |
166 | 166 |
167 int computeTimeoutMultiplier({ | 167 int computeTimeoutMultiplier({ |
168 bool isDebug: false, | 168 bool isDebug: false, |
169 bool isChecked: false, | 169 bool isChecked: false, |
170 String arch}) { | 170 String arch}) { |
171 int multiplier = 1; | 171 int multiplier = 1; |
172 switch (arch) { | 172 switch (arch) { |
173 case 'simarm': | 173 case 'simarm': |
174 case 'arm': | 174 case 'arm': |
| 175 case 'simarmv6': |
| 176 case 'armv6': |
175 case' simarmv5te': | 177 case' simarmv5te': |
176 case 'armv5te': | 178 case 'armv5te': |
177 case 'simmips': | 179 case 'simmips': |
178 case 'mips': | 180 case 'mips': |
179 case 'simarm64': | 181 case 'simarm64': |
180 multiplier *= 4; | 182 multiplier *= 4; |
181 break; | 183 break; |
182 } | 184 } |
183 if (isDebug) { | 185 if (isDebug) { |
184 multiplier *= 2; | 186 multiplier *= 2; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { | 255 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { |
254 List<Command> computeRuntimeCommands( | 256 List<Command> computeRuntimeCommands( |
255 TestSuite suite, | 257 TestSuite suite, |
256 CommandBuilder commandBuilder, | 258 CommandBuilder commandBuilder, |
257 CommandArtifact artifact, | 259 CommandArtifact artifact, |
258 List<String> arguments, | 260 List<String> arguments, |
259 Map<String, String> environmentOverrides) { | 261 Map<String, String> environmentOverrides) { |
260 throw "Unimplemented runtime '$runtimeType'"; | 262 throw "Unimplemented runtime '$runtimeType'"; |
261 } | 263 } |
262 } | 264 } |
OLD | NEW |