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/graph.h" | 8 #include "src/compiler/graph.h" |
9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
10 #include "src/interface-descriptors.h" | 10 #include "src/interface-descriptors.h" |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 case interpreter::OperandType::kRegOutPair: | 421 case interpreter::OperandType::kRegOutPair: |
422 case interpreter::OperandType::kRegOutTriple: | 422 case interpreter::OperandType::kRegOutTriple: |
423 case interpreter::OperandType::kRegPair: | 423 case interpreter::OperandType::kRegPair: |
424 EXPECT_THAT(m.BytecodeOperandReg(i), | 424 EXPECT_THAT(m.BytecodeOperandReg(i), |
425 m.IsSignedOperand(offset, operand_size)); | 425 m.IsSignedOperand(offset, operand_size)); |
426 break; | 426 break; |
427 case interpreter::OperandType::kRuntimeId: | 427 case interpreter::OperandType::kRuntimeId: |
428 EXPECT_THAT(m.BytecodeOperandRuntimeId(i), | 428 EXPECT_THAT(m.BytecodeOperandRuntimeId(i), |
429 m.IsUnsignedOperand(offset, operand_size)); | 429 m.IsUnsignedOperand(offset, operand_size)); |
430 break; | 430 break; |
| 431 case interpreter::OperandType::kIntrinsicId: |
| 432 EXPECT_THAT(m.BytecodeOperandIntrinsicId(i), |
| 433 m.IsUnsignedOperand(offset, operand_size)); |
| 434 break; |
431 case interpreter::OperandType::kNone: | 435 case interpreter::OperandType::kNone: |
432 UNREACHABLE(); | 436 UNREACHABLE(); |
433 break; | 437 break; |
434 } | 438 } |
435 } | 439 } |
436 } | 440 } |
437 } | 441 } |
438 } | 442 } |
439 | 443 |
440 TARGET_TEST_F(InterpreterAssemblerTest, GetSetAccumulator) { | 444 TARGET_TEST_F(InterpreterAssemblerTest, GetSetAccumulator) { |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 EXPECT_THAT(feedback_vector, | 703 EXPECT_THAT(feedback_vector, |
700 m.IsLoad(MachineType::AnyTagged(), load_literals_matcher, | 704 m.IsLoad(MachineType::AnyTagged(), load_literals_matcher, |
701 IsIntPtrConstant(LiteralsArray::kFeedbackVectorOffset - | 705 IsIntPtrConstant(LiteralsArray::kFeedbackVectorOffset - |
702 kHeapObjectTag))); | 706 kHeapObjectTag))); |
703 } | 707 } |
704 } | 708 } |
705 | 709 |
706 } // namespace interpreter | 710 } // namespace interpreter |
707 } // namespace internal | 711 } // namespace internal |
708 } // namespace v8 | 712 } // namespace v8 |
OLD | NEW |