Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #include "vm/coverage.h" | 5 #include "vm/coverage.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 | 8 |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 172 // We stay within this loop while we are seeing functions from the same | 172 // We stay within this loop while we are seeing functions from the same |
| 173 // source URI. | 173 // source URI. |
| 174 while (i < functions.Length()) { | 174 while (i < functions.Length()) { |
| 175 function ^= functions.At(i); | 175 function ^= functions.At(i); |
| 176 script = function.script(); | 176 script = function.script(); |
| 177 url = script.url(); | 177 url = script.url(); |
| 178 if (!url.Equals(saved_url)) { | 178 if (!url.Equals(saved_url)) { |
| 179 pos_to_line.Clear(); | 179 pos_to_line.Clear(); |
| 180 break; | 180 break; |
| 181 } | 181 } |
| 182 if (!filter->ShouldOutputCoverageFor(lib, saved_url, cls, function)) { | |
|
Michael Lippautz (Google)
2014/07/09 23:49:21
We also need to filter within the second loop (tha
Cutch
2014/07/10 20:21:06
Acknowledged.
| |
| 183 i++; | |
| 184 continue; | |
| 185 } | |
| 182 CompileAndAdd(function, hits_arr, pos_to_line); | 186 CompileAndAdd(function, hits_arr, pos_to_line); |
| 183 if (function.HasImplicitClosureFunction()) { | 187 if (function.HasImplicitClosureFunction()) { |
| 184 function = function.ImplicitClosureFunction(); | 188 function = function.ImplicitClosureFunction(); |
| 185 CompileAndAdd(function, hits_arr, pos_to_line); | 189 CompileAndAdd(function, hits_arr, pos_to_line); |
| 186 } | 190 } |
| 187 i++; | 191 i++; |
| 188 } | 192 } |
| 189 } | 193 } |
| 190 | 194 |
| 191 GrowableObjectArray& closures = | 195 GrowableObjectArray& closures = |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 283 cls = it.GetNextClass(); | 287 cls = it.GetNextClass(); |
| 284 ASSERT(!cls.IsNull()); | 288 ASSERT(!cls.IsNull()); |
| 285 PrintClass(lib, cls, jsarr, filter); | 289 PrintClass(lib, cls, jsarr, filter); |
| 286 } | 290 } |
| 287 } | 291 } |
| 288 } | 292 } |
| 289 } | 293 } |
| 290 | 294 |
| 291 | 295 |
| 292 } // namespace dart | 296 } // namespace dart |
| OLD | NEW |