Index: src/compiler/instruction-selector-impl.h |
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h |
index c9c1571beb41f7708b1ae2d9cb9588bb477ee2d3..bbf9436740372629a31abb75daf6e4b801f0da12 100644 |
--- a/src/compiler/instruction-selector-impl.h |
+++ b/src/compiler/instruction-selector-impl.h |
@@ -48,8 +48,9 @@ class OperandGenerator { |
return ConstantOperand::Create(node->id(), zone()); |
} |
- InstructionOperand* DefineAsLocation(Node* node, LinkageLocation location) { |
- return Define(node, ToUnallocatedOperand(location)); |
+ InstructionOperand* DefineAsLocation(Node* node, LinkageLocation location, |
+ MachineType type) { |
+ return Define(node, ToUnallocatedOperand(location, type)); |
} |
InstructionOperand* Use(Node* node) { |
@@ -94,8 +95,9 @@ class OperandGenerator { |
return ImmediateOperand::Create(index, zone()); |
} |
- InstructionOperand* UseLocation(Node* node, LinkageLocation location) { |
- return Use(node, ToUnallocatedOperand(location)); |
+ InstructionOperand* UseLocation(Node* node, LinkageLocation location, |
+ MachineType type) { |
+ return Use(node, ToUnallocatedOperand(location, type)); |
} |
InstructionOperand* TempRegister() { |
@@ -174,7 +176,8 @@ class OperandGenerator { |
return operand; |
} |
- UnallocatedOperand* ToUnallocatedOperand(LinkageLocation location) { |
+ UnallocatedOperand* ToUnallocatedOperand(LinkageLocation location, |
+ MachineType type) { |
if (location.location_ == LinkageLocation::ANY_REGISTER) { |
return new (zone()) |
UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER); |
@@ -183,7 +186,7 @@ class OperandGenerator { |
return new (zone()) UnallocatedOperand(UnallocatedOperand::FIXED_SLOT, |
location.location_); |
} |
- if (RepresentationOf(location.rep_) == kRepFloat64) { |
+ if (RepresentationOf(type) == kRepFloat64) { |
return new (zone()) UnallocatedOperand( |
UnallocatedOperand::FIXED_DOUBLE_REGISTER, location.location_); |
} |