Index: test/unittests/compiler/instruction-sequence-unittest.cc |
diff --git a/test/unittests/compiler/instruction-sequence-unittest.cc b/test/unittests/compiler/instruction-sequence-unittest.cc |
index 40a59df484a83ca5fadc5b0eea8623828715df1c..4228470f2e55fe8968584aa6ee45d7b7f0b4dfbb 100644 |
--- a/test/unittests/compiler/instruction-sequence-unittest.cc |
+++ b/test/unittests/compiler/instruction-sequence-unittest.cc |
@@ -293,34 +293,26 @@ Instruction* InstructionSequenceTest::NewInstruction( |
InstructionOperand* InstructionSequenceTest::Unallocated( |
TestOperand op, UnallocatedOperand::ExtendedPolicy policy) { |
- auto unallocated = new (zone()) UnallocatedOperand(policy); |
- unallocated->set_virtual_register(op.vreg_.value_); |
- return unallocated; |
+ return new (zone()) UnallocatedOperand(policy, op.vreg_.value_); |
} |
InstructionOperand* InstructionSequenceTest::Unallocated( |
TestOperand op, UnallocatedOperand::ExtendedPolicy policy, |
UnallocatedOperand::Lifetime lifetime) { |
- auto unallocated = new (zone()) UnallocatedOperand(policy, lifetime); |
- unallocated->set_virtual_register(op.vreg_.value_); |
- return unallocated; |
+ return new (zone()) UnallocatedOperand(policy, lifetime, op.vreg_.value_); |
} |
InstructionOperand* InstructionSequenceTest::Unallocated( |
TestOperand op, UnallocatedOperand::ExtendedPolicy policy, int index) { |
- auto unallocated = new (zone()) UnallocatedOperand(policy, index); |
- unallocated->set_virtual_register(op.vreg_.value_); |
- return unallocated; |
+ return new (zone()) UnallocatedOperand(policy, index, op.vreg_.value_); |
} |
InstructionOperand* InstructionSequenceTest::Unallocated( |
TestOperand op, UnallocatedOperand::BasicPolicy policy, int index) { |
- auto unallocated = new (zone()) UnallocatedOperand(policy, index); |
- unallocated->set_virtual_register(op.vreg_.value_); |
- return unallocated; |
+ return new (zone()) UnallocatedOperand(policy, index, op.vreg_.value_); |
} |