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/compiler/interpreter-assembler.h" | 5 #include "src/compiler/interpreter-assembler.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 UNREACHABLE(); | 297 UNREACHABLE(); |
298 return nullptr; | 298 return nullptr; |
299 } | 299 } |
300 } | 300 } |
301 | 301 |
302 | 302 |
303 Node* InterpreterAssembler::BytecodeOperandReg(int operand_index) { | 303 Node* InterpreterAssembler::BytecodeOperandReg(int operand_index) { |
304 switch (interpreter::Bytecodes::GetOperandType(bytecode_, operand_index)) { | 304 switch (interpreter::Bytecodes::GetOperandType(bytecode_, operand_index)) { |
305 case interpreter::OperandType::kReg8: | 305 case interpreter::OperandType::kReg8: |
306 case interpreter::OperandType::kRegPair8: | 306 case interpreter::OperandType::kRegPair8: |
| 307 case interpreter::OperandType::kRegTriple8: |
307 case interpreter::OperandType::kMaybeReg8: | 308 case interpreter::OperandType::kMaybeReg8: |
308 DCHECK_EQ( | 309 DCHECK_EQ( |
309 interpreter::OperandSize::kByte, | 310 interpreter::OperandSize::kByte, |
310 interpreter::Bytecodes::GetOperandSize(bytecode_, operand_index)); | 311 interpreter::Bytecodes::GetOperandSize(bytecode_, operand_index)); |
311 return BytecodeOperandSignExtended(operand_index); | 312 return BytecodeOperandSignExtended(operand_index); |
312 case interpreter::OperandType::kReg16: | 313 case interpreter::OperandType::kReg16: |
313 DCHECK_EQ( | 314 DCHECK_EQ( |
314 interpreter::OperandSize::kShort, | 315 interpreter::OperandSize::kShort, |
315 interpreter::Bytecodes::GetOperandSize(bytecode_, operand_index)); | 316 interpreter::Bytecodes::GetOperandSize(bytecode_, operand_index)); |
316 return BytecodeOperandShortSignExtended(operand_index); | 317 return BytecodeOperandShortSignExtended(operand_index); |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 return raw_assembler_->call_descriptor(); | 743 return raw_assembler_->call_descriptor(); |
743 } | 744 } |
744 | 745 |
745 | 746 |
746 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } | 747 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } |
747 | 748 |
748 | 749 |
749 } // namespace compiler | 750 } // namespace compiler |
750 } // namespace internal | 751 } // namespace internal |
751 } // namespace v8 | 752 } // namespace v8 |
OLD | NEW |