| 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 #library('dart:_interceptors'); | 5 #library('dart:_interceptors'); |
| 6 | 6 |
| 7 #import('coreimpl.dart'); | 7 #import('coreimpl.dart'); |
| 8 #import('js_helper.dart'); | 8 #import('js_helper.dart'); |
| 9 | 9 |
| 10 add$1(var receiver, var value) { | 10 add$1(var receiver, var value) { |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 if (receiver is !int) return UNINTERCEPTED(receiver.isEven()); | 633 if (receiver is !int) return UNINTERCEPTED(receiver.isEven()); |
| 634 return (receiver & 1) === 0; | 634 return (receiver & 1) === 0; |
| 635 } | 635 } |
| 636 | 636 |
| 637 isOdd(receiver) { | 637 isOdd(receiver) { |
| 638 if (receiver is !int) return UNINTERCEPTED(receiver.isOdd()); | 638 if (receiver is !int) return UNINTERCEPTED(receiver.isOdd()); |
| 639 return (receiver & 1) === 1; | 639 return (receiver & 1) === 1; |
| 640 } | 640 } |
| 641 | 641 |
| 642 get$toString(receiver) => () => toString(receiver); | 642 get$toString(receiver) => () => toString(receiver); |
| 643 |
| 644 runtimeType(receiver) { |
| 645 if (receiver is int) { |
| 646 return getOrCreateCachedRuntimeType('int'); |
| 647 } else if (receiver is String) { |
| 648 return getOrCreateCachedRuntimeType('String'); |
| 649 } else if (receiver is double) { |
| 650 return getOrCreateCachedRuntimeType('double'); |
| 651 } else if (receiver is List) { |
| 652 return getOrCreateCachedRuntimeType('List'); |
| 653 } else { |
| 654 return UNINTERCEPTED(receiver.runtimeType()); |
| 655 } |
| 656 } |
| OLD | NEW |