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 "test/unittests/interpreter/interpreter-assembler-unittest.h" | 5 #include "test/unittests/interpreter/interpreter-assembler-unittest.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/compiler/node.h" | 8 #include "src/compiler/node.h" |
9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 m.IsUnsignedOperand(offset, operand_size)); | 385 m.IsUnsignedOperand(offset, operand_size)); |
386 break; | 386 break; |
387 case interpreter::OperandType::kImm: { | 387 case interpreter::OperandType::kImm: { |
388 EXPECT_THAT(m.BytecodeOperandImm(i), | 388 EXPECT_THAT(m.BytecodeOperandImm(i), |
389 m.IsSignedOperand(offset, operand_size)); | 389 m.IsSignedOperand(offset, operand_size)); |
390 break; | 390 break; |
391 } | 391 } |
392 case interpreter::OperandType::kRegList: | 392 case interpreter::OperandType::kRegList: |
393 case interpreter::OperandType::kReg: | 393 case interpreter::OperandType::kReg: |
394 case interpreter::OperandType::kRegOut: | 394 case interpreter::OperandType::kRegOut: |
| 395 case interpreter::OperandType::kRegOutList: |
395 case interpreter::OperandType::kRegOutPair: | 396 case interpreter::OperandType::kRegOutPair: |
396 case interpreter::OperandType::kRegOutTriple: | 397 case interpreter::OperandType::kRegOutTriple: |
397 case interpreter::OperandType::kRegPair: | 398 case interpreter::OperandType::kRegPair: |
398 EXPECT_THAT( | 399 EXPECT_THAT( |
399 m.BytecodeOperandReg(i), | 400 m.BytecodeOperandReg(i), |
400 IsChangeInt32ToIntPtr(m.IsSignedOperand(offset, operand_size))); | 401 IsChangeInt32ToIntPtr(m.IsSignedOperand(offset, operand_size))); |
401 break; | 402 break; |
402 case interpreter::OperandType::kRuntimeId: | 403 case interpreter::OperandType::kRuntimeId: |
403 EXPECT_THAT(m.BytecodeOperandRuntimeId(i), | 404 EXPECT_THAT(m.BytecodeOperandRuntimeId(i), |
404 m.IsUnsignedOperand(offset, operand_size)); | 405 m.IsUnsignedOperand(offset, operand_size)); |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 EXPECT_THAT( | 658 EXPECT_THAT( |
658 feedback_vector, | 659 feedback_vector, |
659 m.IsLoad(MachineType::AnyTagged(), load_vector_cell_matcher, | 660 m.IsLoad(MachineType::AnyTagged(), load_vector_cell_matcher, |
660 IsIntPtrConstant(Cell::kValueOffset - kHeapObjectTag))); | 661 IsIntPtrConstant(Cell::kValueOffset - kHeapObjectTag))); |
661 } | 662 } |
662 } | 663 } |
663 | 664 |
664 } // namespace interpreter | 665 } // namespace interpreter |
665 } // namespace internal | 666 } // namespace internal |
666 } // namespace v8 | 667 } // namespace v8 |
OLD | NEW |