| 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 operator <=(other) {} | 321 operator <=(other) {} |
| 322 operator >=(other) {} | 322 operator >=(other) {} |
| 323 operator ==(other) {} | 323 operator ==(other) {} |
| 324 } | 324 } |
| 325 class JSInt extends JSNumber { | 325 class JSInt extends JSNumber { |
| 326 operator~() => this; | 326 operator~() => this; |
| 327 } | 327 } |
| 328 class JSDouble extends JSNumber { | 328 class JSDouble extends JSNumber { |
| 329 } | 329 } |
| 330 class JSNull { | 330 class JSNull { |
| 331 bool operator==(other) => identical(null, other); |
| 332 get hashCode => throw "JSNull.hashCode not implemented."; |
| 333 String toString() => 'Null'; |
| 334 Type get runtimeType => Null; |
| 335 noSuchMethod(x) => super.noSuchMethod(x); |
| 331 } | 336 } |
| 332 class JSBool { | 337 class JSBool { |
| 333 } | 338 } |
| 334 class JSFunction { | 339 class JSFunction { |
| 335 } | 340 } |
| 336 class ObjectInterceptor { | 341 class ObjectInterceptor { |
| 337 } | 342 } |
| 338 class JSPositiveInt extends JSInt {} | 343 class JSPositiveInt extends JSInt {} |
| 339 class JSUInt32 extends JSPositiveInt {} | 344 class JSUInt32 extends JSPositiveInt {} |
| 340 class JSUInt31 extends JSUInt32 {} | 345 class JSUInt31 extends JSUInt32 {} |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 break; | 388 break; |
| 384 } | 389 } |
| 385 } | 390 } |
| 386 | 391 |
| 387 | 392 |
| 388 main() { | 393 main() { |
| 389 for (int i = 0; i < TESTS.length; i += 2) { | 394 for (int i = 0; i < TESTS.length; i += 2) { |
| 390 expect(TESTS[i], TESTS[i + 1]); | 395 expect(TESTS[i], TESTS[i + 1]); |
| 391 } | 396 } |
| 392 } | 397 } |
| OLD | NEW |