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 /// An RpcException represents an exceptional event that happened | 7 /// An RpcException represents an exceptional event that happened |
8 /// while invoking an rpc. | 8 /// while invoking an rpc. |
9 abstract class RpcException implements Exception { | 9 abstract class RpcException implements Exception { |
10 RpcException(this.message); | 10 RpcException(this.message); |
(...skipping 2815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2826 class CodeInlineInterval { | 2826 class CodeInlineInterval { |
2827 final int start; | 2827 final int start; |
2828 final int end; | 2828 final int end; |
2829 final List<ServiceFunction> functions = new List<ServiceFunction>(); | 2829 final List<ServiceFunction> functions = new List<ServiceFunction>(); |
2830 bool contains(int pc) => (pc >= start) && (pc < end); | 2830 bool contains(int pc) => (pc >= start) && (pc < end); |
2831 CodeInlineInterval(this.start, this.end); | 2831 CodeInlineInterval(this.start, this.end); |
2832 } | 2832 } |
2833 | 2833 |
2834 class Code extends ServiceObject { | 2834 class Code extends ServiceObject { |
2835 @observable CodeKind kind; | 2835 @observable CodeKind kind; |
2836 @observable Instance objectPool; | 2836 @observable ServiceObject objectPool; |
2837 @observable ServiceFunction function; | 2837 @observable ServiceFunction function; |
2838 @observable Script script; | 2838 @observable Script script; |
2839 @observable bool isOptimized = false; | 2839 @observable bool isOptimized = false; |
2840 @reflectable int startAddress = 0; | 2840 @reflectable int startAddress = 0; |
2841 @reflectable int endAddress = 0; | 2841 @reflectable int endAddress = 0; |
2842 @reflectable final instructions = new ObservableList<CodeInstruction>(); | 2842 @reflectable final instructions = new ObservableList<CodeInstruction>(); |
2843 @observable ProfileCode profile; | 2843 @observable ProfileCode profile; |
2844 final List<CodeInlineInterval> inlineIntervals = | 2844 final List<CodeInlineInterval> inlineIntervals = |
2845 new List<CodeInlineInterval>(); | 2845 new List<CodeInlineInterval>(); |
2846 final ObservableList<ServiceFunction> inlinedFunctions = | 2846 final ObservableList<ServiceFunction> inlinedFunctions = |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3319 var v = list[i]; | 3319 var v = list[i]; |
3320 if ((v is ObservableMap) && _isServiceMap(v)) { | 3320 if ((v is ObservableMap) && _isServiceMap(v)) { |
3321 list[i] = owner.getFromMap(v); | 3321 list[i] = owner.getFromMap(v); |
3322 } else if (v is ObservableList) { | 3322 } else if (v is ObservableList) { |
3323 _upgradeObservableList(v, owner); | 3323 _upgradeObservableList(v, owner); |
3324 } else if (v is ObservableMap) { | 3324 } else if (v is ObservableMap) { |
3325 _upgradeObservableMap(v, owner); | 3325 _upgradeObservableMap(v, owner); |
3326 } | 3326 } |
3327 } | 3327 } |
3328 } | 3328 } |
OLD | NEW |