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 3121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3132 _kindString = 'compiler'; | 3132 _kindString = 'compiler'; |
3133 break; | 3133 break; |
3134 case "kSweeperTask": | 3134 case "kSweeperTask": |
3135 _kind = M.ThreadKind.sweeperTask; | 3135 _kind = M.ThreadKind.sweeperTask; |
3136 _kindString = 'sweeper'; | 3136 _kindString = 'sweeper'; |
3137 break; | 3137 break; |
3138 case "kMarkerTask": | 3138 case "kMarkerTask": |
3139 _kind = M.ThreadKind.markerTask; | 3139 _kind = M.ThreadKind.markerTask; |
3140 _kindString = 'marker'; | 3140 _kindString = 'marker'; |
3141 break; | 3141 break; |
3142 case "kFinalizerTask": | |
3143 _kind = M.ThreadKind.finalizerTask; | |
3144 _kindString = 'finalizer'; | |
3145 break; | |
3146 default: | 3142 default: |
3147 assert(false); | 3143 assert(false); |
3148 } | 3144 } |
3149 | 3145 |
3150 _zoneHighWatermark = int.parse(map['_zoneHighWatermark']); | 3146 _zoneHighWatermark = int.parse(map['_zoneHighWatermark']); |
3151 _zoneCapacity = int.parse(map['_zoneCapacity']); | 3147 _zoneCapacity = int.parse(map['_zoneCapacity']); |
3152 } | 3148 } |
3153 } | 3149 } |
3154 | 3150 |
3155 class Zone implements M.Zone { | 3151 class Zone implements M.Zone { |
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4628 var v = list[i]; | 4624 var v = list[i]; |
4629 if ((v is Map) && _isServiceMap(v)) { | 4625 if ((v is Map) && _isServiceMap(v)) { |
4630 list[i] = owner.getFromMap(v); | 4626 list[i] = owner.getFromMap(v); |
4631 } else if (v is List) { | 4627 } else if (v is List) { |
4632 _upgradeList(v, owner); | 4628 _upgradeList(v, owner); |
4633 } else if (v is Map) { | 4629 } else if (v is Map) { |
4634 _upgradeMap(v, owner); | 4630 _upgradeMap(v, owner); |
4635 } | 4631 } |
4636 } | 4632 } |
4637 } | 4633 } |
OLD | NEW |