Index: src/compiler/instruction-selector-impl.h |
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h |
index 301612c6f2d6cf86ff71919bdd03d7d3382a9322..71ddd83d75d094358c60f84835459d48c57c8afa 100644 |
--- a/src/compiler/instruction-selector-impl.h |
+++ b/src/compiler/instruction-selector-impl.h |
@@ -54,9 +54,10 @@ class OperandGenerator { |
reg.code(), GetVReg(node))); |
} |
- InstructionOperand DefineAsFixed(Node* node, DoubleRegister reg) { |
+ template <typename FPRegType> |
+ InstructionOperand DefineAsFixed(Node* node, FPRegType reg) { |
return Define(node, |
- UnallocatedOperand(UnallocatedOperand::FIXED_DOUBLE_REGISTER, |
+ UnallocatedOperand(UnallocatedOperand::FIXED_FP_REGISTER, |
reg.code(), GetVReg(node))); |
} |
@@ -122,10 +123,10 @@ class OperandGenerator { |
reg.code(), GetVReg(node))); |
} |
- InstructionOperand UseFixed(Node* node, DoubleRegister reg) { |
- return Use(node, |
- UnallocatedOperand(UnallocatedOperand::FIXED_DOUBLE_REGISTER, |
- reg.code(), GetVReg(node))); |
+ template <typename FPRegType> |
+ InstructionOperand UseFixed(Node* node, FPRegType reg) { |
+ return Use(node, UnallocatedOperand(UnallocatedOperand::FIXED_FP_REGISTER, |
+ reg.code(), GetVReg(node))); |
} |
InstructionOperand UseExplicit(LinkageLocation location) { |
@@ -274,7 +275,7 @@ class OperandGenerator { |
} |
// a fixed register. |
if (IsFloatingPoint(rep)) { |
- return UnallocatedOperand(UnallocatedOperand::FIXED_DOUBLE_REGISTER, |
+ return UnallocatedOperand(UnallocatedOperand::FIXED_FP_REGISTER, |
location.AsRegister(), virtual_register); |
} |
return UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, |