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

Unified Diff: src/interpreter/bytecode-array-builder.cc

Issue 2882973002: [coverage] Block coverage with support for IfStatements (Closed)
Patch Set: Whitespace 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/interpreter/bytecode-array-builder.cc
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
index 11b1267172f8d6b780b52afaf19e959d3535d359..5f7cbee50e77a96747611b624661de0e9b98a4b7 100644
--- a/src/interpreter/bytecode-array-builder.cc
+++ b/src/interpreter/bytecode-array-builder.cc
@@ -1196,6 +1196,13 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::Debugger() {
return *this;
}
+BytecodeArrayBuilder& BytecodeArrayBuilder::IncBlockCounter(
+ int coverage_array_slot) {
+ DCHECK(FLAG_block_coverage);
+ OutputIncBlockCounter(coverage_array_slot);
+ return *this;
+}
+
BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare(
Register receiver, RegisterList cache_info_triple) {
DCHECK_EQ(3, cache_info_triple.register_count());

Powered by Google App Engine
This is Rietveld 408576698