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

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

Issue 1633153002: [interpreter] Reduce move operations for wide register support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove RegisterOperandIsMovable from RegisterMover interface Created 4 years, 10 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 break; 343 break;
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::kRegOut8:
354 case interpreter::OperandType::kRegOutPair8:
355 case interpreter::OperandType::kRegOutTriple8:
353 case interpreter::OperandType::kRegPair8: 356 case interpreter::OperandType::kRegPair8:
354 case interpreter::OperandType::kRegTriple8:
355 EXPECT_THAT(m.BytecodeOperandReg(i), 357 EXPECT_THAT(m.BytecodeOperandReg(i),
356 m.IsBytecodeOperandSignExtended(offset)); 358 m.IsBytecodeOperandSignExtended(offset));
357 break; 359 break;
358 case interpreter::OperandType::kRegCount16: 360 case interpreter::OperandType::kRegCount16:
359 EXPECT_THAT(m.BytecodeOperandCount(i), 361 EXPECT_THAT(m.BytecodeOperandCount(i),
360 m.IsBytecodeOperandShort(offset)); 362 m.IsBytecodeOperandShort(offset));
361 break; 363 break;
362 case interpreter::OperandType::kIdx16: 364 case interpreter::OperandType::kIdx16:
363 EXPECT_THAT(m.BytecodeOperandIdx(i), 365 EXPECT_THAT(m.BytecodeOperandIdx(i),
364 m.IsBytecodeOperandShort(offset)); 366 m.IsBytecodeOperandShort(offset));
365 break; 367 break;
366 case interpreter::OperandType::kMaybeReg16: 368 case interpreter::OperandType::kMaybeReg16:
367 case interpreter::OperandType::kReg16: 369 case interpreter::OperandType::kReg16:
370 case interpreter::OperandType::kRegOut16:
371 case interpreter::OperandType::kRegOutPair16:
372 case interpreter::OperandType::kRegOutTriple16:
368 case interpreter::OperandType::kRegPair16: 373 case interpreter::OperandType::kRegPair16:
369 case interpreter::OperandType::kRegTriple16:
370 EXPECT_THAT(m.BytecodeOperandReg(i), 374 EXPECT_THAT(m.BytecodeOperandReg(i),
371 m.IsBytecodeOperandShortSignExtended(offset)); 375 m.IsBytecodeOperandShortSignExtended(offset));
372 break; 376 break;
373 case interpreter::OperandType::kNone: 377 case interpreter::OperandType::kNone:
374 UNREACHABLE(); 378 UNREACHABLE();
375 break; 379 break;
376 } 380 }
377 } 381 }
378 } 382 }
379 } 383 }
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 feedback_vector, 696 feedback_vector,
693 m.IsLoad(MachineType::AnyTagged(), load_shared_function_info_matcher, 697 m.IsLoad(MachineType::AnyTagged(), load_shared_function_info_matcher,
694 IsIntPtrConstant(SharedFunctionInfo::kFeedbackVectorOffset - 698 IsIntPtrConstant(SharedFunctionInfo::kFeedbackVectorOffset -
695 kHeapObjectTag))); 699 kHeapObjectTag)));
696 } 700 }
697 } 701 }
698 702
699 } // namespace compiler 703 } // namespace compiler
700 } // namespace internal 704 } // namespace internal
701 } // namespace v8 705 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/interpreter/test-interpreter.cc ('k') | test/unittests/interpreter/bytecodes-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698