Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: test/unittests/interpreter/interpreter-assembler-unittest.cc

Issue 2382273002: [Interpreter]: Add kRegList operand type for register list operands. (Closed)
Patch Set: Address comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/unittests/interpreter/bytecode-decoder-unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 break; 423 break;
424 case interpreter::OperandType::kUImm: 424 case interpreter::OperandType::kUImm:
425 EXPECT_THAT(m.BytecodeOperandUImm(i), 425 EXPECT_THAT(m.BytecodeOperandUImm(i),
426 m.IsUnsignedOperand(offset, operand_size)); 426 m.IsUnsignedOperand(offset, operand_size));
427 break; 427 break;
428 case interpreter::OperandType::kImm: { 428 case interpreter::OperandType::kImm: {
429 EXPECT_THAT(m.BytecodeOperandImm(i), 429 EXPECT_THAT(m.BytecodeOperandImm(i),
430 m.IsSignedOperand(offset, operand_size)); 430 m.IsSignedOperand(offset, operand_size));
431 break; 431 break;
432 } 432 }
433 case interpreter::OperandType::kMaybeReg: 433 case interpreter::OperandType::kRegList:
434 case interpreter::OperandType::kReg: 434 case interpreter::OperandType::kReg:
435 case interpreter::OperandType::kRegOut: 435 case interpreter::OperandType::kRegOut:
436 case interpreter::OperandType::kRegOutPair: 436 case interpreter::OperandType::kRegOutPair:
437 case interpreter::OperandType::kRegOutTriple: 437 case interpreter::OperandType::kRegOutTriple:
438 case interpreter::OperandType::kRegPair: 438 case interpreter::OperandType::kRegPair:
439 EXPECT_THAT(m.BytecodeOperandReg(i), 439 EXPECT_THAT(m.BytecodeOperandReg(i),
440 m.IsSignedOperand(offset, operand_size)); 440 m.IsSignedOperand(offset, operand_size));
441 break; 441 break;
442 case interpreter::OperandType::kRuntimeId: 442 case interpreter::OperandType::kRuntimeId:
443 EXPECT_THAT(m.BytecodeOperandRuntimeId(i), 443 EXPECT_THAT(m.BytecodeOperandRuntimeId(i),
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 EXPECT_THAT(feedback_vector, 717 EXPECT_THAT(feedback_vector,
718 m.IsLoad(MachineType::AnyTagged(), load_literals_matcher, 718 m.IsLoad(MachineType::AnyTagged(), load_literals_matcher,
719 IsIntPtrConstant(LiteralsArray::kFeedbackVectorOffset - 719 IsIntPtrConstant(LiteralsArray::kFeedbackVectorOffset -
720 kHeapObjectTag))); 720 kHeapObjectTag)));
721 } 721 }
722 } 722 }
723 723
724 } // namespace interpreter 724 } // namespace interpreter
725 } // namespace internal 725 } // namespace internal
726 } // namespace v8 726 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/interpreter/bytecode-decoder-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698