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

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

Issue 1584813002: [Interpreter] Make ForInPrepare take a kRegTriple8 and ForInNext take kRegPair8 for cache state (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_forin
Patch Set: Fix release Created 4 years, 11 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
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/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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 case interpreter::OperandType::kIdx8: 344 case interpreter::OperandType::kIdx8:
345 EXPECT_THAT(m.BytecodeOperandIdx(i), m.IsBytecodeOperand(offset)); 345 EXPECT_THAT(m.BytecodeOperandIdx(i), m.IsBytecodeOperand(offset));
346 break; 346 break;
347 case interpreter::OperandType::kImm8: 347 case interpreter::OperandType::kImm8:
348 EXPECT_THAT(m.BytecodeOperandImm(i), 348 EXPECT_THAT(m.BytecodeOperandImm(i),
349 m.IsBytecodeOperandSignExtended(offset)); 349 m.IsBytecodeOperandSignExtended(offset));
350 break; 350 break;
351 case interpreter::OperandType::kMaybeReg8: 351 case interpreter::OperandType::kMaybeReg8:
352 case interpreter::OperandType::kReg8: 352 case interpreter::OperandType::kReg8:
353 case interpreter::OperandType::kRegPair8: 353 case interpreter::OperandType::kRegPair8:
354 case interpreter::OperandType::kRegTriple8:
354 EXPECT_THAT(m.BytecodeOperandReg(i), 355 EXPECT_THAT(m.BytecodeOperandReg(i),
355 m.IsBytecodeOperandSignExtended(offset)); 356 m.IsBytecodeOperandSignExtended(offset));
356 break; 357 break;
357 case interpreter::OperandType::kCount16: 358 case interpreter::OperandType::kCount16:
358 EXPECT_THAT(m.BytecodeOperandCount(i), 359 EXPECT_THAT(m.BytecodeOperandCount(i),
359 m.IsBytecodeOperandShort(offset)); 360 m.IsBytecodeOperandShort(offset));
360 break; 361 break;
361 case interpreter::OperandType::kIdx16: 362 case interpreter::OperandType::kIdx16:
362 EXPECT_THAT(m.BytecodeOperandIdx(i), 363 EXPECT_THAT(m.BytecodeOperandIdx(i),
363 m.IsBytecodeOperandShort(offset)); 364 m.IsBytecodeOperandShort(offset));
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 feedback_vector, 679 feedback_vector,
679 m.IsLoad(MachineType::AnyTagged(), load_shared_function_info_matcher, 680 m.IsLoad(MachineType::AnyTagged(), load_shared_function_info_matcher,
680 IsIntPtrConstant(SharedFunctionInfo::kFeedbackVectorOffset - 681 IsIntPtrConstant(SharedFunctionInfo::kFeedbackVectorOffset -
681 kHeapObjectTag))); 682 kHeapObjectTag)));
682 } 683 }
683 } 684 }
684 685
685 } // namespace compiler 686 } // namespace compiler
686 } // namespace internal 687 } // namespace internal
687 } // namespace v8 688 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/interpreter/test-bytecode-generator.cc ('k') | test/unittests/interpreter/bytecode-array-builder-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698