Index: src/compiler/instruction-selector-impl.h |
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h |
index 2ee099f9a8721df845a9640446632a67d0e050f7..88283d489877caeef91ed8e431c82e19a007d9fa 100644 |
--- a/src/compiler/instruction-selector-impl.h |
+++ b/src/compiler/instruction-selector-impl.h |
@@ -51,13 +51,15 @@ |
InstructionOperand DefineAsFixed(Node* node, Register reg) { |
return Define(node, UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, |
- reg.code(), GetVReg(node))); |
+ Register::ToAllocationIndex(reg), |
+ GetVReg(node))); |
} |
InstructionOperand DefineAsFixed(Node* node, DoubleRegister reg) { |
return Define(node, |
UnallocatedOperand(UnallocatedOperand::FIXED_DOUBLE_REGISTER, |
- reg.code(), GetVReg(node))); |
+ DoubleRegister::ToAllocationIndex(reg), |
+ GetVReg(node))); |
} |
InstructionOperand DefineAsConstant(Node* node) { |
@@ -105,13 +107,15 @@ |
InstructionOperand UseFixed(Node* node, Register reg) { |
return Use(node, UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, |
- reg.code(), GetVReg(node))); |
+ Register::ToAllocationIndex(reg), |
+ GetVReg(node))); |
} |
InstructionOperand UseFixed(Node* node, DoubleRegister reg) { |
return Use(node, |
UnallocatedOperand(UnallocatedOperand::FIXED_DOUBLE_REGISTER, |
- reg.code(), GetVReg(node))); |
+ DoubleRegister::ToAllocationIndex(reg), |
+ GetVReg(node))); |
} |
InstructionOperand UseImmediate(Node* node) { |
@@ -138,7 +142,8 @@ |
} |
InstructionOperand TempRegister(Register reg) { |
- return UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, reg.code(), |
+ return UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, |
+ Register::ToAllocationIndex(reg), |
InstructionOperand::kInvalidVirtualRegister); |
} |