| 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 3895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3906 class CodeInlineInterval { | 3906 class CodeInlineInterval { |
| 3907 final int start; | 3907 final int start; |
| 3908 final int end; | 3908 final int end; |
| 3909 final List<ServiceFunction> functions = new List<ServiceFunction>(); | 3909 final List<ServiceFunction> functions = new List<ServiceFunction>(); |
| 3910 bool contains(int pc) => (pc >= start) && (pc < end); | 3910 bool contains(int pc) => (pc >= start) && (pc < end); |
| 3911 CodeInlineInterval(this.start, this.end); | 3911 CodeInlineInterval(this.start, this.end); |
| 3912 } | 3912 } |
| 3913 | 3913 |
| 3914 class Code extends HeapObject implements M.Code { | 3914 class Code extends HeapObject implements M.Code { |
| 3915 @observable M.CodeKind kind; | 3915 @observable M.CodeKind kind; |
| 3916 @observable ServiceObject objectPool; | 3916 @observable ObjectPool objectPool; |
| 3917 @observable ServiceFunction function; | 3917 @observable ServiceFunction function; |
| 3918 @observable Script script; | 3918 @observable Script script; |
| 3919 @observable bool isOptimized; | 3919 @observable bool isOptimized; |
| 3920 @observable bool hasIntrinsic; | 3920 @observable bool hasIntrinsic; |
| 3921 @observable bool isNative; | 3921 @observable bool isNative; |
| 3922 | 3922 |
| 3923 @reflectable int startAddress = 0; | 3923 @reflectable int startAddress = 0; |
| 3924 @reflectable int endAddress = 0; | 3924 @reflectable int endAddress = 0; |
| 3925 @reflectable final instructions = new ObservableList<CodeInstruction>(); | 3925 @reflectable final instructions = new ObservableList<CodeInstruction>(); |
| 3926 List<CodeInstruction> instructionsByAddressOffset; | 3926 List<CodeInstruction> instructionsByAddressOffset; |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4457 var v = list[i]; | 4457 var v = list[i]; |
| 4458 if ((v is ObservableMap) && _isServiceMap(v)) { | 4458 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 4459 list[i] = owner.getFromMap(v); | 4459 list[i] = owner.getFromMap(v); |
| 4460 } else if (v is ObservableList) { | 4460 } else if (v is ObservableList) { |
| 4461 _upgradeObservableList(v, owner); | 4461 _upgradeObservableList(v, owner); |
| 4462 } else if (v is ObservableMap) { | 4462 } else if (v is ObservableMap) { |
| 4463 _upgradeObservableMap(v, owner); | 4463 _upgradeObservableMap(v, owner); |
| 4464 } | 4464 } |
| 4465 } | 4465 } |
| 4466 } | 4466 } |
| OLD | NEW |