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

Side by Side Diff: test/unittests/compiler/instruction-sequence-unittest.cc

Issue 1018853003: [turbofan] add non fixed slot constraint to register allocator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 "src/base/utils/random-number-generator.h" 5 #include "src/base/utils/random-number-generator.h"
6 #include "src/compiler/pipeline.h" 6 #include "src/compiler/pipeline.h"
7 #include "test/unittests/compiler/instruction-sequence-unittest.h" 7 #include "test/unittests/compiler/instruction-sequence-unittest.h"
8 #include "test/unittests/test-utils.h" 8 #include "test/unittests/test-utils.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 case kNone: 366 case kNone:
367 return Unallocated(op, UnallocatedOperand::NONE, 367 return Unallocated(op, UnallocatedOperand::NONE,
368 UnallocatedOperand::USED_AT_START); 368 UnallocatedOperand::USED_AT_START);
369 case kUnique: 369 case kUnique:
370 return Unallocated(op, UnallocatedOperand::NONE); 370 return Unallocated(op, UnallocatedOperand::NONE);
371 case kUniqueRegister: 371 case kUniqueRegister:
372 return Unallocated(op, UnallocatedOperand::MUST_HAVE_REGISTER); 372 return Unallocated(op, UnallocatedOperand::MUST_HAVE_REGISTER);
373 case kRegister: 373 case kRegister:
374 return Unallocated(op, UnallocatedOperand::MUST_HAVE_REGISTER, 374 return Unallocated(op, UnallocatedOperand::MUST_HAVE_REGISTER,
375 UnallocatedOperand::USED_AT_START); 375 UnallocatedOperand::USED_AT_START);
376 case kSlot:
377 return Unallocated(op, UnallocatedOperand::MUST_HAVE_SLOT,
378 UnallocatedOperand::USED_AT_START);
376 case kFixedRegister: 379 case kFixedRegister:
377 CHECK(0 <= op.value_ && op.value_ < num_general_registers_); 380 CHECK(0 <= op.value_ && op.value_ < num_general_registers_);
378 return Unallocated(op, UnallocatedOperand::FIXED_REGISTER, op.value_); 381 return Unallocated(op, UnallocatedOperand::FIXED_REGISTER, op.value_);
379 case kFixedSlot: 382 case kFixedSlot:
380 return Unallocated(op, UnallocatedOperand::FIXED_SLOT, op.value_); 383 return Unallocated(op, UnallocatedOperand::FIXED_SLOT, op.value_);
381 default: 384 default:
382 break; 385 break;
383 } 386 }
384 CHECK(false); 387 CHECK(false);
385 return InstructionOperand(); 388 return InstructionOperand();
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 486
484 487
485 Instruction* InstructionSequenceTest::AddInstruction(Instruction* instruction) { 488 Instruction* InstructionSequenceTest::AddInstruction(Instruction* instruction) {
486 sequence()->AddInstruction(instruction); 489 sequence()->AddInstruction(instruction);
487 return instruction; 490 return instruction;
488 } 491 }
489 492
490 } // namespace compiler 493 } // namespace compiler
491 } // namespace internal 494 } // namespace internal
492 } // namespace v8 495 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/register-allocator-verifier.cc ('k') | test/unittests/compiler/register-allocator-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698