| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 obj = new SourceLocation._empty(owner); | 231 obj = new SourceLocation._empty(owner); |
| 232 break; | 232 break; |
| 233 case 'UnresolvedSourceLocation': | 233 case 'UnresolvedSourceLocation': |
| 234 obj = new UnresolvedSourceLocation._empty(owner); | 234 obj = new UnresolvedSourceLocation._empty(owner); |
| 235 break; | 235 break; |
| 236 case 'Object': | 236 case 'Object': |
| 237 switch (vmType) { | 237 switch (vmType) { |
| 238 case 'ICData': | 238 case 'ICData': |
| 239 obj = new ICData._empty(owner); | 239 obj = new ICData._empty(owner); |
| 240 break; | 240 break; |
| 241 case 'Instructions': | |
| 242 obj = new Instructions._empty(owner); | |
| 243 break; | |
| 244 case 'LocalVarDescriptors': | 241 case 'LocalVarDescriptors': |
| 245 obj = new LocalVarDescriptors._empty(owner); | 242 obj = new LocalVarDescriptors._empty(owner); |
| 246 break; | 243 break; |
| 247 case 'MegamorphicCache': | 244 case 'MegamorphicCache': |
| 248 obj = new MegamorphicCache._empty(owner); | 245 obj = new MegamorphicCache._empty(owner); |
| 249 break; | 246 break; |
| 250 case 'ObjectPool': | 247 case 'ObjectPool': |
| 251 obj = new ObjectPool._empty(owner); | 248 obj = new ObjectPool._empty(owner); |
| 252 break; | 249 break; |
| 253 case 'PcDescriptors': | 250 case 'PcDescriptors': |
| (...skipping 3343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3597 if (mapIsRef) { | 3594 if (mapIsRef) { |
| 3598 return; | 3595 return; |
| 3599 } | 3596 } |
| 3600 | 3597 |
| 3601 mask = map['_mask']; | 3598 mask = map['_mask']; |
| 3602 buckets = map['_buckets']; | 3599 buckets = map['_buckets']; |
| 3603 argumentsDescriptor = map['_argumentsDescriptor']; | 3600 argumentsDescriptor = map['_argumentsDescriptor']; |
| 3604 } | 3601 } |
| 3605 } | 3602 } |
| 3606 | 3603 |
| 3607 class Instructions extends HeapObject implements M.InstructionsRef { | |
| 3608 bool get immutable => true; | |
| 3609 | |
| 3610 @observable Code code; | |
| 3611 @observable ObjectPool objectPool; | |
| 3612 | |
| 3613 Instructions._empty(ServiceObjectOwner owner) : super._empty(owner); | |
| 3614 | |
| 3615 void _update(ObservableMap map, bool mapIsRef) { | |
| 3616 _upgradeCollection(map, isolate); | |
| 3617 super._update(map, mapIsRef); | |
| 3618 | |
| 3619 code = map['_code']; | |
| 3620 if (mapIsRef) { | |
| 3621 return; | |
| 3622 } | |
| 3623 objectPool = map['_objectPool']; | |
| 3624 } | |
| 3625 } | |
| 3626 | |
| 3627 class TokenStream extends HeapObject implements M.TokenStreamRef { | 3604 class TokenStream extends HeapObject implements M.TokenStreamRef { |
| 3628 bool get immutable => true; | 3605 bool get immutable => true; |
| 3629 | 3606 |
| 3630 @observable String privateKey; | 3607 @observable String privateKey; |
| 3631 | 3608 |
| 3632 TokenStream._empty(ServiceObjectOwner owner) : super._empty(owner); | 3609 TokenStream._empty(ServiceObjectOwner owner) : super._empty(owner); |
| 3633 | 3610 |
| 3634 void _update(ObservableMap map, bool mapIsRef) { | 3611 void _update(ObservableMap map, bool mapIsRef) { |
| 3635 _upgradeCollection(map, isolate); | 3612 _upgradeCollection(map, isolate); |
| 3636 super._update(map, mapIsRef); | 3613 super._update(map, mapIsRef); |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4276 var v = list[i]; | 4253 var v = list[i]; |
| 4277 if ((v is ObservableMap) && _isServiceMap(v)) { | 4254 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 4278 list[i] = owner.getFromMap(v); | 4255 list[i] = owner.getFromMap(v); |
| 4279 } else if (v is ObservableList) { | 4256 } else if (v is ObservableList) { |
| 4280 _upgradeObservableList(v, owner); | 4257 _upgradeObservableList(v, owner); |
| 4281 } else if (v is ObservableMap) { | 4258 } else if (v is ObservableMap) { |
| 4282 _upgradeObservableMap(v, owner); | 4259 _upgradeObservableMap(v, owner); |
| 4283 } | 4260 } |
| 4284 } | 4261 } |
| 4285 } | 4262 } |
| OLD | NEW |