| 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 /// A [ServiceObject] is an object known to the VM service and is tied | 7 /// A [ServiceObject] is an object known to the VM service and is tied |
| 8 /// to an owning [Isolate]. | 8 /// to an owning [Isolate]. |
| 9 abstract class ServiceObject extends Observable { | 9 abstract class ServiceObject extends Observable { |
| 10 static int LexicalSortName(ServiceObject o1, ServiceObject o2) { | 10 static int LexicalSortName(ServiceObject o1, ServiceObject o2) { |
| (...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1260 static FunctionKind kMethodExtractor = new FunctionKind._internal('method extr
actor'); | 1260 static FunctionKind kMethodExtractor = new FunctionKind._internal('method extr
actor'); |
| 1261 static FunctionKind kNoSuchMethodDispatcher = new FunctionKind._internal('noSu
chMethod dispatcher'); | 1261 static FunctionKind kNoSuchMethodDispatcher = new FunctionKind._internal('noSu
chMethod dispatcher'); |
| 1262 static FunctionKind kInvokeFieldDispatcher = new FunctionKind._internal('invok
e field dispatcher'); | 1262 static FunctionKind kInvokeFieldDispatcher = new FunctionKind._internal('invok
e field dispatcher'); |
| 1263 static FunctionKind kCollected = new FunctionKind._internal('Collected'); | 1263 static FunctionKind kCollected = new FunctionKind._internal('Collected'); |
| 1264 static FunctionKind kNative = new FunctionKind._internal('Native'); | 1264 static FunctionKind kNative = new FunctionKind._internal('Native'); |
| 1265 static FunctionKind kTag = new FunctionKind._internal('Tag'); | 1265 static FunctionKind kTag = new FunctionKind._internal('Tag'); |
| 1266 static FunctionKind kReused = new FunctionKind._internal('Reused'); | 1266 static FunctionKind kReused = new FunctionKind._internal('Reused'); |
| 1267 static FunctionKind kUNKNOWN = new FunctionKind._internal('UNKNOWN'); | 1267 static FunctionKind kUNKNOWN = new FunctionKind._internal('UNKNOWN'); |
| 1268 } | 1268 } |
| 1269 | 1269 |
| 1270 class ServiceFunction extends ServiceObject { | 1270 class ServiceFunction extends ServiceObject with Coverage { |
| 1271 @observable Class owningClass; | 1271 @observable Class owningClass; |
| 1272 @observable Library owningLibrary; | 1272 @observable Library owningLibrary; |
| 1273 @observable bool isStatic; | 1273 @observable bool isStatic; |
| 1274 @observable bool isConst; | 1274 @observable bool isConst; |
| 1275 @observable ServiceFunction parent; | 1275 @observable ServiceFunction parent; |
| 1276 @observable Script script; | 1276 @observable Script script; |
| 1277 @observable int tokenPos; | 1277 @observable int tokenPos; |
| 1278 @observable int endTokenPos; | 1278 @observable int endTokenPos; |
| 1279 @observable Code code; | 1279 @observable Code code; |
| 1280 @observable Code unoptimizedCode; | 1280 @observable Code unoptimizedCode; |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2024 var v = list[i]; | 2024 var v = list[i]; |
| 2025 if ((v is ObservableMap) && _isServiceMap(v)) { | 2025 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 2026 list[i] = owner.getFromMap(v); | 2026 list[i] = owner.getFromMap(v); |
| 2027 } else if (v is ObservableList) { | 2027 } else if (v is ObservableList) { |
| 2028 _upgradeObservableList(v, owner); | 2028 _upgradeObservableList(v, owner); |
| 2029 } else if (v is ObservableMap) { | 2029 } else if (v is ObservableMap) { |
| 2030 _upgradeObservableMap(v, owner); | 2030 _upgradeObservableMap(v, owner); |
| 2031 } | 2031 } |
| 2032 } | 2032 } |
| 2033 } | 2033 } |
| OLD | NEW |