| OLD | NEW |
| 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 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 OutputReturn(); | 1192 OutputReturn(); |
| 1193 return_seen_in_block_ = true; | 1193 return_seen_in_block_ = true; |
| 1194 return *this; | 1194 return *this; |
| 1195 } | 1195 } |
| 1196 | 1196 |
| 1197 BytecodeArrayBuilder& BytecodeArrayBuilder::Debugger() { | 1197 BytecodeArrayBuilder& BytecodeArrayBuilder::Debugger() { |
| 1198 OutputDebugger(); | 1198 OutputDebugger(); |
| 1199 return *this; | 1199 return *this; |
| 1200 } | 1200 } |
| 1201 | 1201 |
| 1202 BytecodeArrayBuilder& BytecodeArrayBuilder::IncBlockCounter(int slot) { |
| 1203 DCHECK(FLAG_block_coverage); |
| 1204 DCHECK_GE(slot, 0); |
| 1205 OutputIncBlockCounter(slot); |
| 1206 return *this; |
| 1207 } |
| 1208 |
| 1202 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( | 1209 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( |
| 1203 Register receiver, RegisterList cache_info_triple) { | 1210 Register receiver, RegisterList cache_info_triple) { |
| 1204 DCHECK_EQ(3, cache_info_triple.register_count()); | 1211 DCHECK_EQ(3, cache_info_triple.register_count()); |
| 1205 OutputForInPrepare(receiver, cache_info_triple); | 1212 OutputForInPrepare(receiver, cache_info_triple); |
| 1206 return *this; | 1213 return *this; |
| 1207 } | 1214 } |
| 1208 | 1215 |
| 1209 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInContinue( | 1216 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInContinue( |
| 1210 Register index, Register cache_length) { | 1217 Register index, Register cache_length) { |
| 1211 OutputForInContinue(index, cache_length); | 1218 OutputForInContinue(index, cache_length); |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1517 case BytecodeArrayBuilder::ToBooleanMode::kConvertToBoolean: | 1524 case BytecodeArrayBuilder::ToBooleanMode::kConvertToBoolean: |
| 1518 return os << "ConvertToBoolean"; | 1525 return os << "ConvertToBoolean"; |
| 1519 } | 1526 } |
| 1520 UNREACHABLE(); | 1527 UNREACHABLE(); |
| 1521 return os; | 1528 return os; |
| 1522 } | 1529 } |
| 1523 | 1530 |
| 1524 } // namespace interpreter | 1531 } // namespace interpreter |
| 1525 } // namespace internal | 1532 } // namespace internal |
| 1526 } // namespace v8 | 1533 } // namespace v8 |
| OLD | NEW |