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

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

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/interpreter/bytecode-array-builder.cc
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
index e6137efca5b9057d37105b7a0a0327bbb8443eb6..ee864c45fa300d4351c28f6d28f0a45a579524bc 100644
--- a/src/interpreter/bytecode-array-builder.cc
+++ b/src/interpreter/bytecode-array-builder.cc
@@ -1199,6 +1199,13 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::Debugger() {
return *this;
}
+BytecodeArrayBuilder& BytecodeArrayBuilder::IncBlockCounter(int slot) {
+ DCHECK(FLAG_block_coverage);
+ DCHECK_GE(slot, 0);
+ OutputIncBlockCounter(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