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 /// Helper function for canceling a Future<StreamSubscription>. | 7 /// Helper function for canceling a Future<StreamSubscription>. |
8 Future cancelFutureSubscription( | 8 Future cancelFutureSubscription( |
9 Future<StreamSubscription> subscriptionFuture) async { | 9 Future<StreamSubscription> subscriptionFuture) async { |
10 if (subscriptionFuture != null) { | 10 if (subscriptionFuture != null) { |
(...skipping 2557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2568 @observable Code unoptimizedCode; | 2568 @observable Code unoptimizedCode; |
2569 @observable bool isOptimizable; | 2569 @observable bool isOptimizable; |
2570 @observable bool isInlinable; | 2570 @observable bool isInlinable; |
2571 @observable FunctionKind kind; | 2571 @observable FunctionKind kind; |
2572 @observable int deoptimizations; | 2572 @observable int deoptimizations; |
2573 @observable String qualifiedName; | 2573 @observable String qualifiedName; |
2574 @observable int usageCounter; | 2574 @observable int usageCounter; |
2575 @observable bool isDart; | 2575 @observable bool isDart; |
2576 @observable ProfileFunction profile; | 2576 @observable ProfileFunction profile; |
2577 @observable Instance icDataArray; | 2577 @observable Instance icDataArray; |
| 2578 @observable Field field; |
2578 | 2579 |
2579 bool get canCache => true; | 2580 bool get canCache => true; |
2580 bool get immutable => false; | 2581 bool get immutable => false; |
2581 | 2582 |
2582 ServiceFunction._empty(ServiceObject owner) : super._empty(owner); | 2583 ServiceFunction._empty(ServiceObject owner) : super._empty(owner); |
2583 | 2584 |
2584 void _update(ObservableMap map, bool mapIsRef) { | 2585 void _update(ObservableMap map, bool mapIsRef) { |
2585 _upgradeCollection(map, isolate); | 2586 _upgradeCollection(map, isolate); |
2586 super._update(map, mapIsRef); | 2587 super._update(map, mapIsRef); |
2587 | 2588 |
(...skipping 27 matching lines...) Expand all Loading... |
2615 isStatic = map['static']; | 2616 isStatic = map['static']; |
2616 isConst = map['const']; | 2617 isConst = map['const']; |
2617 location = map['location']; | 2618 location = map['location']; |
2618 code = map['code']; | 2619 code = map['code']; |
2619 isOptimizable = map['_optimizable']; | 2620 isOptimizable = map['_optimizable']; |
2620 isInlinable = map['_inlinable']; | 2621 isInlinable = map['_inlinable']; |
2621 unoptimizedCode = map['_unoptimizedCode']; | 2622 unoptimizedCode = map['_unoptimizedCode']; |
2622 deoptimizations = map['_deoptimizations']; | 2623 deoptimizations = map['_deoptimizations']; |
2623 usageCounter = map['_usageCounter']; | 2624 usageCounter = map['_usageCounter']; |
2624 icDataArray = map['_icDataArray']; | 2625 icDataArray = map['_icDataArray']; |
| 2626 field = map['_field']; |
2625 } | 2627 } |
2626 } | 2628 } |
2627 | 2629 |
2628 | 2630 |
2629 class Field extends HeapObject { | 2631 class Field extends HeapObject { |
2630 // Library or Class. | 2632 // Library or Class. |
2631 @observable ServiceObject dartOwner; | 2633 @observable ServiceObject dartOwner; |
2632 @observable Library library; | 2634 @observable Library library; |
2633 @observable Instance declaredType; | 2635 @observable Instance declaredType; |
2634 @observable bool isStatic; | 2636 @observable bool isStatic; |
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3998 var v = list[i]; | 4000 var v = list[i]; |
3999 if ((v is ObservableMap) && _isServiceMap(v)) { | 4001 if ((v is ObservableMap) && _isServiceMap(v)) { |
4000 list[i] = owner.getFromMap(v); | 4002 list[i] = owner.getFromMap(v); |
4001 } else if (v is ObservableList) { | 4003 } else if (v is ObservableList) { |
4002 _upgradeObservableList(v, owner); | 4004 _upgradeObservableList(v, owner); |
4003 } else if (v is ObservableMap) { | 4005 } else if (v is ObservableMap) { |
4004 _upgradeObservableMap(v, owner); | 4006 _upgradeObservableMap(v, owner); |
4005 } | 4007 } |
4006 } | 4008 } |
4007 } | 4009 } |
OLD | NEW |