summaryrefslogtreecommitdiff
path: root/chromium/v8/src/compiler/backend/instruction-selector-impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/compiler/backend/instruction-selector-impl.h')
-rw-r--r--chromium/v8/src/compiler/backend/instruction-selector-impl.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/chromium/v8/src/compiler/backend/instruction-selector-impl.h b/chromium/v8/src/compiler/backend/instruction-selector-impl.h
index 7e1f183fb71..539ba5dc255 100644
--- a/chromium/v8/src/compiler/backend/instruction-selector-impl.h
+++ b/chromium/v8/src/compiler/backend/instruction-selector-impl.h
@@ -85,10 +85,12 @@ class OperandGenerator {
GetVReg(node)));
}
+ InstructionOperand DefineSameAsInput(Node* node, int input_index) {
+ return Define(node, UnallocatedOperand(GetVReg(node), input_index));
+ }
+
InstructionOperand DefineSameAsFirst(Node* node) {
- return Define(node,
- UnallocatedOperand(UnallocatedOperand::SAME_AS_FIRST_INPUT,
- GetVReg(node)));
+ return DefineSameAsInput(node, 0);
}
InstructionOperand DefineAsFixed(Node* node, Register reg) {
@@ -224,7 +226,7 @@ class OperandGenerator {
int AllocateVirtualRegister() { return sequence()->NextVirtualRegister(); }
InstructionOperand DefineSameAsFirstForVreg(int vreg) {
- return UnallocatedOperand(UnallocatedOperand::SAME_AS_FIRST_INPUT, vreg);
+ return UnallocatedOperand(UnallocatedOperand::SAME_AS_INPUT, vreg);
}
InstructionOperand DefineAsRegistertForVreg(int vreg) {