| 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 part of service; | 5 part of service; |
| 6 | 6 |
| 7 // Some value smaller than the object ring, so requesting a large array | 7 // Some value smaller than the object ring, so requesting a large array |
| 8 // doesn't result in an expired ref because the elements lapped it in the | 8 // doesn't result in an expired ref because the elements lapped it in the |
| 9 // object ring. | 9 // object ring. |
| 10 const int kDefaultFieldLimit = 100; | 10 const int kDefaultFieldLimit = 100; |
| (...skipping 3635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3646 dartOwner = map['_owner']; | 3646 dartOwner = map['_owner']; |
| 3647 selector = map['_selector']; | 3647 selector = map['_selector']; |
| 3648 if (mapIsRef) { | 3648 if (mapIsRef) { |
| 3649 return; | 3649 return; |
| 3650 } | 3650 } |
| 3651 argumentsDescriptor = map['_argumentsDescriptor']; | 3651 argumentsDescriptor = map['_argumentsDescriptor']; |
| 3652 entries = map['_entries']; | 3652 entries = map['_entries']; |
| 3653 } | 3653 } |
| 3654 } | 3654 } |
| 3655 | 3655 |
| 3656 class MegamorphicCache extends HeapObject implements M.MegamorphicCacheRef { | 3656 class MegamorphicCache extends HeapObject implements M.MegamorphicCache { |
| 3657 @observable int mask; | 3657 @observable int mask; |
| 3658 @observable Instance buckets; | 3658 @observable Instance buckets; |
| 3659 @observable String selector; | 3659 @observable String selector; |
| 3660 @observable Instance argumentsDescriptor; | 3660 @observable Instance argumentsDescriptor; |
| 3661 | 3661 |
| 3662 bool get immutable => false; | 3662 bool get immutable => false; |
| 3663 | 3663 |
| 3664 MegamorphicCache._empty(ServiceObjectOwner owner) : super._empty(owner); | 3664 MegamorphicCache._empty(ServiceObjectOwner owner) : super._empty(owner); |
| 3665 | 3665 |
| 3666 void _update(ObservableMap map, bool mapIsRef) { | 3666 void _update(ObservableMap map, bool mapIsRef) { |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4330 var v = list[i]; | 4330 var v = list[i]; |
| 4331 if ((v is ObservableMap) && _isServiceMap(v)) { | 4331 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 4332 list[i] = owner.getFromMap(v); | 4332 list[i] = owner.getFromMap(v); |
| 4333 } else if (v is ObservableList) { | 4333 } else if (v is ObservableList) { |
| 4334 _upgradeObservableList(v, owner); | 4334 _upgradeObservableList(v, owner); |
| 4335 } else if (v is ObservableMap) { | 4335 } else if (v is ObservableMap) { |
| 4336 _upgradeObservableMap(v, owner); | 4336 _upgradeObservableMap(v, owner); |
| 4337 } | 4337 } |
| 4338 } | 4338 } |
| 4339 } | 4339 } |
| OLD | NEW |