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

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 2882973002: [coverage] Block coverage with support for IfStatements (Closed)
Patch Set: Remove coverage infos 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 #include "src/globals.h" 7 #include "src/globals.h"
8 #include "src/interpreter/bytecode-array-writer.h" 8 #include "src/interpreter/bytecode-array-writer.h"
9 #include "src/interpreter/bytecode-jump-table.h" 9 #include "src/interpreter/bytecode-jump-table.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 OutputReturn(); 1189 OutputReturn();
1190 return_seen_in_block_ = true; 1190 return_seen_in_block_ = true;
1191 return *this; 1191 return *this;
1192 } 1192 }
1193 1193
1194 BytecodeArrayBuilder& BytecodeArrayBuilder::Debugger() { 1194 BytecodeArrayBuilder& BytecodeArrayBuilder::Debugger() {
1195 OutputDebugger(); 1195 OutputDebugger();
1196 return *this; 1196 return *this;
1197 } 1197 }
1198 1198
1199 BytecodeArrayBuilder& BytecodeArrayBuilder::IncBlockCounter(
1200 int coverage_array_slot) {
1201 DCHECK(FLAG_block_coverage);
1202 OutputIncBlockCounter(coverage_array_slot);
1203 return *this;
1204 }
1205
1199 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( 1206 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare(
1200 Register receiver, RegisterList cache_info_triple) { 1207 Register receiver, RegisterList cache_info_triple) {
1201 DCHECK_EQ(3, cache_info_triple.register_count()); 1208 DCHECK_EQ(3, cache_info_triple.register_count());
1202 OutputForInPrepare(receiver, cache_info_triple); 1209 OutputForInPrepare(receiver, cache_info_triple);
1203 return *this; 1210 return *this;
1204 } 1211 }
1205 1212
1206 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInContinue( 1213 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInContinue(
1207 Register index, Register cache_length) { 1214 Register index, Register cache_length) {
1208 OutputForInContinue(index, cache_length); 1215 OutputForInContinue(index, cache_length);
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 return os << "AlreadyBoolean"; 1520 return os << "AlreadyBoolean";
1514 case BytecodeArrayBuilder::ToBooleanMode::kConvertToBoolean: 1521 case BytecodeArrayBuilder::ToBooleanMode::kConvertToBoolean:
1515 return os << "ConvertToBoolean"; 1522 return os << "ConvertToBoolean";
1516 } 1523 }
1517 UNREACHABLE(); 1524 UNREACHABLE();
1518 } 1525 }
1519 1526
1520 } // namespace interpreter 1527 } // namespace interpreter
1521 } // namespace internal 1528 } // namespace internal
1522 } // namespace v8 1529 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698