| 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 4476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4487 if (frameKind == null) { | 4487 if (frameKind == null) { |
| 4488 return M.FrameKind.regular; | 4488 return M.FrameKind.regular; |
| 4489 } | 4489 } |
| 4490 switch (frameKind) { | 4490 switch (frameKind) { |
| 4491 case 'Regular': | 4491 case 'Regular': |
| 4492 return M.FrameKind.regular; | 4492 return M.FrameKind.regular; |
| 4493 case 'AsyncCausal': | 4493 case 'AsyncCausal': |
| 4494 return M.FrameKind.asyncCausal; | 4494 return M.FrameKind.asyncCausal; |
| 4495 case 'AsyncSuspensionMarker': | 4495 case 'AsyncSuspensionMarker': |
| 4496 return M.FrameKind.asyncSuspensionMarker; | 4496 return M.FrameKind.asyncSuspensionMarker; |
| 4497 case 'AsyncActivation': |
| 4498 return M.FrameKind.asyncActivation; |
| 4497 default: | 4499 default: |
| 4498 throw new UnsupportedError('Unknown FrameKind: $frameKind'); | 4500 throw new UnsupportedError('Unknown FrameKind: $frameKind'); |
| 4499 } | 4501 } |
| 4500 } | 4502 } |
| 4501 | 4503 |
| 4502 String toString() { | 4504 String toString() { |
| 4503 if (function != null) { | 4505 if (function != null) { |
| 4504 return "Frame([$kind] ${function.qualifiedName} $location)"; | 4506 return "Frame([$kind] ${function.qualifiedName} $location)"; |
| 4505 } else if (location != null) { | 4507 } else if (location != null) { |
| 4506 return "Frame([$kind] $location)"; | 4508 return "Frame([$kind] $location)"; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4623 var v = list[i]; | 4625 var v = list[i]; |
| 4624 if ((v is Map) && _isServiceMap(v)) { | 4626 if ((v is Map) && _isServiceMap(v)) { |
| 4625 list[i] = owner.getFromMap(v); | 4627 list[i] = owner.getFromMap(v); |
| 4626 } else if (v is List) { | 4628 } else if (v is List) { |
| 4627 _upgradeList(v, owner); | 4629 _upgradeList(v, owner); |
| 4628 } else if (v is Map) { | 4630 } else if (v is Map) { |
| 4629 _upgradeMap(v, owner); | 4631 _upgradeMap(v, owner); |
| 4630 } | 4632 } |
| 4631 } | 4633 } |
| 4632 } | 4634 } |
| OLD | NEW |