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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 bool get isDouble => false; | 129 bool get isDouble => false; |
130 bool get isString => false; | 130 bool get isString => false; |
131 bool get isInt => false; | 131 bool get isInt => false; |
132 bool get isList => false; | 132 bool get isList => false; |
133 bool get isMap => false; | 133 bool get isMap => false; |
134 bool get isTypedData => false; | 134 bool get isTypedData => false; |
135 bool get isRegExp => false; | 135 bool get isRegExp => false; |
136 bool get isMirrorReference => false; | 136 bool get isMirrorReference => false; |
137 bool get isWeakProperty => false; | 137 bool get isWeakProperty => false; |
138 bool get isClosure => false; | 138 bool get isClosure => false; |
| 139 bool get isStackTrace => false; |
| 140 bool get isSimdValue => false; |
139 bool get isPlainInstance => false; | 141 bool get isPlainInstance => false; |
140 | 142 |
141 /// Has this object been fully loaded? | 143 /// Has this object been fully loaded? |
142 bool get loaded => _loaded; | 144 bool get loaded => _loaded; |
143 bool _loaded = false; | 145 bool _loaded = false; |
144 // TODO(turnidge): Make loaded observable and get rid of loading | 146 // TODO(turnidge): Make loaded observable and get rid of loading |
145 // from Isolate. | 147 // from Isolate. |
146 | 148 |
147 /// Is this object cacheable? That is, is it impossible for the [id] | 149 /// Is this object cacheable? That is, is it impossible for the [id] |
148 /// of this object to change? | 150 /// of this object to change? |
(...skipping 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2206 || kind == 'Int8List' | 2208 || kind == 'Int8List' |
2207 || kind == 'Int16List' | 2209 || kind == 'Int16List' |
2208 || kind == 'Int32List' | 2210 || kind == 'Int32List' |
2209 || kind == 'Int64List' | 2211 || kind == 'Int64List' |
2210 || kind == 'Float32List' | 2212 || kind == 'Float32List' |
2211 || kind == 'Float64List' | 2213 || kind == 'Float64List' |
2212 || kind == 'Int32x4List' | 2214 || kind == 'Int32x4List' |
2213 || kind == 'Float32x4List' | 2215 || kind == 'Float32x4List' |
2214 || kind == 'Float64x2List'; | 2216 || kind == 'Float64x2List'; |
2215 } | 2217 } |
| 2218 bool get isSimdValue { |
| 2219 return kind == 'Float32x4' |
| 2220 || kind == 'Float64x2' |
| 2221 || kind == 'Int32x4'; |
| 2222 } |
2216 bool get isRegExp => kind == 'RegExp'; | 2223 bool get isRegExp => kind == 'RegExp'; |
2217 bool get isMirrorReference => kind == 'MirrorReference'; | 2224 bool get isMirrorReference => kind == 'MirrorReference'; |
2218 bool get isWeakProperty => kind == 'WeakProperty'; | 2225 bool get isWeakProperty => kind == 'WeakProperty'; |
2219 bool get isClosure => kind == 'Closure'; | 2226 bool get isClosure => kind == 'Closure'; |
| 2227 bool get isStackTrace => kind == 'StackTrace'; |
2220 | 2228 |
2221 // TODO(turnidge): Is this properly backwards compatible when new | 2229 // TODO(turnidge): Is this properly backwards compatible when new |
2222 // instance kinds are added? | 2230 // instance kinds are added? |
2223 bool get isPlainInstance => kind == 'PlainInstance'; | 2231 bool get isPlainInstance => kind == 'PlainInstance'; |
2224 | 2232 |
2225 Instance._empty(ServiceObjectOwner owner) : super._empty(owner); | 2233 Instance._empty(ServiceObjectOwner owner) : super._empty(owner); |
2226 | 2234 |
2227 void _update(ObservableMap map, bool mapIsRef) { | 2235 void _update(ObservableMap map, bool mapIsRef) { |
2228 // Extract full properties. | 2236 // Extract full properties. |
2229 _upgradeCollection(map, isolate); | 2237 _upgradeCollection(map, isolate); |
(...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3800 var v = list[i]; | 3808 var v = list[i]; |
3801 if ((v is ObservableMap) && _isServiceMap(v)) { | 3809 if ((v is ObservableMap) && _isServiceMap(v)) { |
3802 list[i] = owner.getFromMap(v); | 3810 list[i] = owner.getFromMap(v); |
3803 } else if (v is ObservableList) { | 3811 } else if (v is ObservableList) { |
3804 _upgradeObservableList(v, owner); | 3812 _upgradeObservableList(v, owner); |
3805 } else if (v is ObservableMap) { | 3813 } else if (v is ObservableMap) { |
3806 _upgradeObservableMap(v, owner); | 3814 _upgradeObservableMap(v, owner); |
3807 } | 3815 } |
3808 } | 3816 } |
3809 } | 3817 } |
OLD | NEW |