Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: src/debug/debug-coverage.h

Issue 2882973002: [coverage] Block coverage with support for IfStatements (Closed)
Patch Set: Address comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/debug/debug.cc ('k') | src/debug/debug-coverage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug-coverage.h
diff --git a/src/debug/debug-coverage.h b/src/debug/debug-coverage.h
index b21622cb2eaf2f55196f8e32bb0fa7131d7e4019..6410b20138ab5687c3e919a396ed160fbe1b6895 100644
--- a/src/debug/debug-coverage.h
+++ b/src/debug/debug-coverage.h
@@ -16,6 +16,13 @@ namespace internal {
// Forward declaration.
class Isolate;
+struct CoverageBlock {
+ CoverageBlock(int s, int e, uint32_t c) : start(s), end(e), count(c) {}
+ int start;
+ int end;
+ uint32_t count;
+};
+
struct CoverageFunction {
CoverageFunction(int s, int e, uint32_t c, Handle<String> n)
: start(s), end(e), count(c), name(n) {}
@@ -23,6 +30,8 @@ struct CoverageFunction {
int end;
uint32_t count;
Handle<String> name;
+ // Blocks are sorted by start position, from outer to inner blocks.
+ std::vector<CoverageBlock> blocks;
};
struct CoverageScript {
« no previous file with comments | « src/debug/debug.cc ('k') | src/debug/debug-coverage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698