| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |