| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 import 'compiler_helper.dart'; | 6 import 'compiler_helper.dart'; |
| 7 | 7 |
| 8 const int REMOVED = 0; | 8 const int REMOVED = 0; |
| 9 const int ABOVE_ZERO = 1; | 9 const int ABOVE_ZERO = 1; |
| 10 const int BELOW_LENGTH = 2; | 10 const int BELOW_LENGTH = 2; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // TODO(ahe): It would probably be better if this test used the real | 202 // TODO(ahe): It would probably be better if this test used the real |
| 203 // core library sources, as its purpose is to detect failure to | 203 // core library sources, as its purpose is to detect failure to |
| 204 // optimize fixed-sized arrays. | 204 // optimize fixed-sized arrays. |
| 205 const String DEFAULT_CORELIB_WITH_LIST_INTERFACE = r''' | 205 const String DEFAULT_CORELIB_WITH_LIST_INTERFACE = r''' |
| 206 print(var obj) {} | 206 print(var obj) {} |
| 207 abstract class num {} | 207 abstract class num {} |
| 208 abstract class int extends num { } | 208 abstract class int extends num { } |
| 209 abstract class double extends num { } | 209 abstract class double extends num { } |
| 210 class bool {} | 210 class bool {} |
| 211 class String {} | 211 class String {} |
| 212 class Object {} | 212 class Object { |
| 213 Object(); |
| 214 } |
| 213 class Type {} | 215 class Type {} |
| 214 class Function {} | 216 class Function {} |
| 215 class List { | 217 class List { |
| 216 List([int length]); | 218 List([int length]); |
| 217 } | 219 } |
| 218 abstract class Map {} | 220 abstract class Map {} |
| 219 class Closure {} | 221 class Closure {} |
| 220 class Null {} | 222 class Null {} |
| 221 class Dynamic_ {} | 223 class Dynamic_ {} |
| 222 class StackTrace {} | 224 class StackTrace {} |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 break; | 315 break; |
| 314 } | 316 } |
| 315 } | 317 } |
| 316 | 318 |
| 317 | 319 |
| 318 main() { | 320 main() { |
| 319 for (int i = 0; i < TESTS.length; i += 2) { | 321 for (int i = 0; i < TESTS.length; i += 2) { |
| 320 expect(TESTS[i], TESTS[i + 1]); | 322 expect(TESTS[i], TESTS[i + 1]); |
| 321 } | 323 } |
| 322 } | 324 } |
| OLD | NEW |