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; | |
435 case interpreter::OperandType::kNone: | 431 case interpreter::OperandType::kNone: |
436 UNREACHABLE(); | 432 UNREACHABLE(); |
437 break; | 433 break; |
438 } | 434 } |
439 } | 435 } |
440 } | 436 } |
441 } | 437 } |
442 } | 438 } |
443 | 439 |
444 TARGET_TEST_F(InterpreterAssemblerTest, GetSetAccumulator) { | 440 TARGET_TEST_F(InterpreterAssemblerTest, GetSetAccumulator) { |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 EXPECT_THAT(feedback_vector, | 699 EXPECT_THAT(feedback_vector, |
704 m.IsLoad(MachineType::AnyTagged(), load_literals_matcher, | 700 m.IsLoad(MachineType::AnyTagged(), load_literals_matcher, |
705 IsIntPtrConstant(LiteralsArray::kFeedbackVectorOffset - | 701 IsIntPtrConstant(LiteralsArray::kFeedbackVectorOffset - |
706 kHeapObjectTag))); | 702 kHeapObjectTag))); |
707 } | 703 } |
708 } | 704 } |
709 | 705 |
710 } // namespace interpreter | 706 } // namespace interpreter |
711 } // namespace internal | 707 } // namespace internal |
712 } // namespace v8 | 708 } // namespace v8 |
OLD | NEW |