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

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

Issue 2882973002: [coverage] Block coverage with support for IfStatements (Closed)
Patch Set: Comment nit Created 3 years, 7 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
Index: src/debug/debug-coverage.h
diff --git a/src/debug/debug-coverage.h b/src/debug/debug-coverage.h
index b21622cb2eaf2f55196f8e32bb0fa7131d7e4019..56668bad919b8807b00b14152048f9258107b1e1 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 function.
+ std::vector<CoverageBlock> blocks;
};
struct CoverageScript {

Powered by Google App Engine
This is Rietveld 408576698