| 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 library object_graph; | 5 library object_graph; |
| 6 | 6 |
| 7 import 'dart:typed_data'; | 7 import 'dart:typed_data'; |
| 8 | 8 |
| 9 import 'dominator_tree.dart'; | 9 import 'dominator_tree.dart'; |
| 10 | 10 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 var v = leaves.removeLast(); | 111 var v = leaves.removeLast(); |
| 112 var u = d.dominator(v); | 112 var u = d.dominator(v); |
| 113 if (u == null) continue; | 113 if (u == null) continue; |
| 114 u._retainedSize += v._retainedSize; | 114 u._retainedSize += v._retainedSize; |
| 115 if (--degree[u] == 0) { | 115 if (--degree[u] == 0) { |
| 116 leaves.add(u); | 116 leaves.add(u); |
| 117 } | 117 } |
| 118 } | 118 } |
| 119 } | 119 } |
| 120 } | 120 } |
| OLD | NEW |