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 3576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3587 super._update(map, mapIsRef); | 3587 super._update(map, mapIsRef); |
3588 | 3588 |
3589 length = map['length']; | 3589 length = map['length']; |
3590 if (mapIsRef) { | 3590 if (mapIsRef) { |
3591 return; | 3591 return; |
3592 } | 3592 } |
3593 entries = map['_entries']; | 3593 entries = map['_entries']; |
3594 } | 3594 } |
3595 } | 3595 } |
3596 | 3596 |
3597 class ICData extends HeapObject implements M.ICDataRef { | 3597 class ICData extends HeapObject implements M.ICData { |
3598 @observable ServiceObject dartOwner; | 3598 @observable HeapObject dartOwner; |
3599 @observable String selector; | 3599 @observable String selector; |
3600 @observable Instance argumentsDescriptor; | 3600 @observable Instance argumentsDescriptor; |
3601 @observable Instance entries; | 3601 @observable Instance entries; |
3602 | 3602 |
3603 bool get immutable => false; | 3603 bool get immutable => false; |
3604 | 3604 |
3605 ICData._empty(ServiceObjectOwner owner) : super._empty(owner); | 3605 ICData._empty(ServiceObjectOwner owner) : super._empty(owner); |
3606 | 3606 |
3607 void _update(ObservableMap map, bool mapIsRef) { | 3607 void _update(ObservableMap map, bool mapIsRef) { |
3608 _upgradeCollection(map, isolate); | 3608 _upgradeCollection(map, isolate); |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4295 var v = list[i]; | 4295 var v = list[i]; |
4296 if ((v is ObservableMap) && _isServiceMap(v)) { | 4296 if ((v is ObservableMap) && _isServiceMap(v)) { |
4297 list[i] = owner.getFromMap(v); | 4297 list[i] = owner.getFromMap(v); |
4298 } else if (v is ObservableList) { | 4298 } else if (v is ObservableList) { |
4299 _upgradeObservableList(v, owner); | 4299 _upgradeObservableList(v, owner); |
4300 } else if (v is ObservableMap) { | 4300 } else if (v is ObservableMap) { |
4301 _upgradeObservableMap(v, owner); | 4301 _upgradeObservableMap(v, owner); |
4302 } | 4302 } |
4303 } | 4303 } |
4304 } | 4304 } |
OLD | NEW |