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

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

Issue 2336203002: [Interpreter] Add an unsigned immediate operand type (Closed)
Patch Set: Address comments Created 4 years, 3 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/cctest/interpreter/bytecode-expectations-printer.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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 m.IsUnsignedOperand(offset, operand_size)); 414 m.IsUnsignedOperand(offset, operand_size));
415 break; 415 break;
416 case interpreter::OperandType::kFlag8: 416 case interpreter::OperandType::kFlag8:
417 EXPECT_THAT(m.BytecodeOperandFlag(i), 417 EXPECT_THAT(m.BytecodeOperandFlag(i),
418 m.IsUnsignedOperand(offset, operand_size)); 418 m.IsUnsignedOperand(offset, operand_size));
419 break; 419 break;
420 case interpreter::OperandType::kIdx: 420 case interpreter::OperandType::kIdx:
421 EXPECT_THAT(m.BytecodeOperandIdx(i), 421 EXPECT_THAT(m.BytecodeOperandIdx(i),
422 m.IsUnsignedOperand(offset, operand_size)); 422 m.IsUnsignedOperand(offset, operand_size));
423 break; 423 break;
424 case interpreter::OperandType::kUImm:
425 EXPECT_THAT(m.BytecodeOperandUImm(i),
426 m.IsUnsignedOperand(offset, operand_size));
427 break;
424 case interpreter::OperandType::kImm: { 428 case interpreter::OperandType::kImm: {
425 EXPECT_THAT(m.BytecodeOperandImm(i), 429 EXPECT_THAT(m.BytecodeOperandImm(i),
426 m.IsSignedOperand(offset, operand_size)); 430 m.IsSignedOperand(offset, operand_size));
427 break; 431 break;
428 } 432 }
429 case interpreter::OperandType::kMaybeReg: 433 case interpreter::OperandType::kMaybeReg:
430 case interpreter::OperandType::kReg: 434 case interpreter::OperandType::kReg:
431 case interpreter::OperandType::kRegOut: 435 case interpreter::OperandType::kRegOut:
432 case interpreter::OperandType::kRegOutPair: 436 case interpreter::OperandType::kRegOutPair:
433 case interpreter::OperandType::kRegOutTriple: 437 case interpreter::OperandType::kRegOutTriple:
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 EXPECT_THAT(feedback_vector, 717 EXPECT_THAT(feedback_vector,
714 m.IsLoad(MachineType::AnyTagged(), load_literals_matcher, 718 m.IsLoad(MachineType::AnyTagged(), load_literals_matcher,
715 IsIntPtrConstant(LiteralsArray::kFeedbackVectorOffset - 719 IsIntPtrConstant(LiteralsArray::kFeedbackVectorOffset -
716 kHeapObjectTag))); 720 kHeapObjectTag)));
717 } 721 }
718 } 722 }
719 723
720 } // namespace interpreter 724 } // namespace interpreter
721 } // namespace internal 725 } // namespace internal
722 } // namespace v8 726 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode-expectations-printer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698