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

Unified Diff: src/api.cc

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 | « no previous file | src/ast/ast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 098e3f9a83e0b168f5072fbb6c9b141bfd893928..fbdc870c514f27d78a50a67438dd2b7950623730 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -9793,6 +9793,10 @@ Local<String> CpuProfileNode::GetFunctionName() const {
}
}
+int debug::Coverage::BlockData::StartOffset() const { return block_->start; }
+int debug::Coverage::BlockData::EndOffset() const { return block_->end; }
+uint32_t debug::Coverage::BlockData::Count() const { return block_->count; }
+
int debug::Coverage::FunctionData::StartOffset() const {
return function_->start;
}
@@ -9805,6 +9809,15 @@ MaybeLocal<String> debug::Coverage::FunctionData::Name() const {
return ToApiHandle<String>(function_->name);
}
+size_t debug::Coverage::FunctionData::BlockCount() const {
+ return function_->blocks.size();
+}
+
+debug::Coverage::BlockData debug::Coverage::FunctionData::GetBlockData(
+ size_t i) const {
+ return BlockData(&function_->blocks.at(i));
+}
+
Local<debug::Script> debug::Coverage::ScriptData::GetScript() const {
return ToApiHandle<debug::Script>(script_->script);
}
« no previous file with comments | « no previous file | src/ast/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698