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

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

Issue 2882973002: [coverage] Block coverage with support for IfStatements (Closed)
Patch Set: Rebase 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..81e1eca3b5916520fa53cf211c335afdae457504 100644
--- a/src/interpreter/bytecode-array-builder.cc
+++ b/src/interpreter/bytecode-array-builder.cc
@@ -1196,6 +1196,12 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::Debugger() {
return *this;
}
+BytecodeArrayBuilder& BytecodeArrayBuilder::IncBlockCounter(int slot) {
+ DCHECK(FLAG_block_coverage);
+ 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