Index: src/compiler/instruction-selector-impl.h |
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h |
index 1b1fa12e6ea2e96741b1c065268d5fa32d77aae0..60522b17998db7a6650635babebd18235898ff6d 100644 |
--- a/src/compiler/instruction-selector-impl.h |
+++ b/src/compiler/instruction-selector-impl.h |
@@ -182,6 +182,21 @@ class OperandGenerator { |
sequence()->NextVirtualRegister()); |
} |
+ int AllocateVirtualRegister() { return sequence()->NextVirtualRegister(); } |
+ |
+ InstructionOperand DefineSameAsFirstForVreg(int vreg) { |
+ return UnallocatedOperand(UnallocatedOperand::SAME_AS_FIRST_INPUT, vreg); |
+ } |
+ |
+ InstructionOperand DefineAsRegistertForVreg(int vreg) { |
+ return UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER, vreg); |
+ } |
+ |
+ InstructionOperand UseRegisterForVreg(int vreg) { |
+ return UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER, |
+ UnallocatedOperand::USED_AT_START, vreg); |
+ } |
+ |
InstructionOperand TempDoubleRegister() { |
UnallocatedOperand op = UnallocatedOperand( |
UnallocatedOperand::MUST_HAVE_REGISTER, |