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/compiler/interpreter-assembler-unittest.h" | 5 #include "test/unittests/compiler/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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 break; | 315 break; |
316 case interpreter::OperandType::kImm8: | 316 case interpreter::OperandType::kImm8: |
317 EXPECT_THAT(m.BytecodeOperandImm(i), | 317 EXPECT_THAT(m.BytecodeOperandImm(i), |
318 m.IsBytecodeOperandSignExtended(offset)); | 318 m.IsBytecodeOperandSignExtended(offset)); |
319 break; | 319 break; |
320 case interpreter::OperandType::kMaybeReg8: | 320 case interpreter::OperandType::kMaybeReg8: |
321 case interpreter::OperandType::kReg8: | 321 case interpreter::OperandType::kReg8: |
322 EXPECT_THAT(m.BytecodeOperandReg(i), | 322 EXPECT_THAT(m.BytecodeOperandReg(i), |
323 m.IsBytecodeOperandSignExtended(offset)); | 323 m.IsBytecodeOperandSignExtended(offset)); |
324 break; | 324 break; |
| 325 case interpreter::OperandType::kCount16: |
| 326 EXPECT_THAT(m.BytecodeOperandCount(i), |
| 327 m.IsBytecodeOperandShort(offset)); |
| 328 break; |
325 case interpreter::OperandType::kIdx16: | 329 case interpreter::OperandType::kIdx16: |
326 EXPECT_THAT(m.BytecodeOperandIdx(i), | 330 EXPECT_THAT(m.BytecodeOperandIdx(i), |
327 m.IsBytecodeOperandShort(offset)); | 331 m.IsBytecodeOperandShort(offset)); |
328 break; | 332 break; |
329 case interpreter::OperandType::kNone: | 333 case interpreter::OperandType::kNone: |
330 UNREACHABLE(); | 334 UNREACHABLE(); |
331 break; | 335 break; |
332 } | 336 } |
333 } | 337 } |
334 } | 338 } |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 feedback_vector, | 631 feedback_vector, |
628 m.IsLoad(kMachAnyTagged, load_shared_function_info_matcher, | 632 m.IsLoad(kMachAnyTagged, load_shared_function_info_matcher, |
629 IsIntPtrConstant(SharedFunctionInfo::kFeedbackVectorOffset - | 633 IsIntPtrConstant(SharedFunctionInfo::kFeedbackVectorOffset - |
630 kHeapObjectTag))); | 634 kHeapObjectTag))); |
631 } | 635 } |
632 } | 636 } |
633 | 637 |
634 } // namespace compiler | 638 } // namespace compiler |
635 } // namespace internal | 639 } // namespace internal |
636 } // namespace v8 | 640 } // namespace v8 |
OLD | NEW |