| 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 3889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3900 class CodeInlineInterval { | 3900 class CodeInlineInterval { |
| 3901 final int start; | 3901 final int start; |
| 3902 final int end; | 3902 final int end; |
| 3903 final List<ServiceFunction> functions = new List<ServiceFunction>(); | 3903 final List<ServiceFunction> functions = new List<ServiceFunction>(); |
| 3904 bool contains(int pc) => (pc >= start) && (pc < end); | 3904 bool contains(int pc) => (pc >= start) && (pc < end); |
| 3905 CodeInlineInterval(this.start, this.end); | 3905 CodeInlineInterval(this.start, this.end); |
| 3906 } | 3906 } |
| 3907 | 3907 |
| 3908 class Code extends HeapObject implements M.Code { | 3908 class Code extends HeapObject implements M.Code { |
| 3909 @observable M.CodeKind kind; | 3909 @observable M.CodeKind kind; |
| 3910 @observable ServiceObject objectPool; | 3910 @observable ObjectPool objectPool; |
| 3911 @observable ServiceFunction function; | 3911 @observable ServiceFunction function; |
| 3912 @observable Script script; | 3912 @observable Script script; |
| 3913 @observable bool isOptimized; | 3913 @observable bool isOptimized; |
| 3914 @observable bool hasIntrinsic; | 3914 @observable bool hasIntrinsic; |
| 3915 @observable bool isNative; | 3915 @observable bool isNative; |
| 3916 | 3916 |
| 3917 @reflectable int startAddress = 0; | 3917 @reflectable int startAddress = 0; |
| 3918 @reflectable int endAddress = 0; | 3918 @reflectable int endAddress = 0; |
| 3919 @reflectable final instructions = new ObservableList<CodeInstruction>(); | 3919 @reflectable final instructions = new ObservableList<CodeInstruction>(); |
| 3920 List<CodeInstruction> instructionsByAddressOffset; | 3920 List<CodeInstruction> instructionsByAddressOffset; |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4451 var v = list[i]; | 4451 var v = list[i]; |
| 4452 if ((v is ObservableMap) && _isServiceMap(v)) { | 4452 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 4453 list[i] = owner.getFromMap(v); | 4453 list[i] = owner.getFromMap(v); |
| 4454 } else if (v is ObservableList) { | 4454 } else if (v is ObservableList) { |
| 4455 _upgradeObservableList(v, owner); | 4455 _upgradeObservableList(v, owner); |
| 4456 } else if (v is ObservableMap) { | 4456 } else if (v is ObservableMap) { |
| 4457 _upgradeObservableMap(v, owner); | 4457 _upgradeObservableMap(v, owner); |
| 4458 } | 4458 } |
| 4459 } | 4459 } |
| 4460 } | 4460 } |
| OLD | NEW |