Index: src/compiler/register-allocator.cc |
diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc |
index 666268aca0c73c091ffb59253b06805fb5cd8a90..4a222a43bef66c2c22008e2a5ddbb8d2113f6a11 100644 |
--- a/src/compiler/register-allocator.cc |
+++ b/src/compiler/register-allocator.cc |
@@ -1242,8 +1242,11 @@ InstructionOperand* ConstraintBuilder::AllocateFixed( |
machine_type = data()->MachineTypeFor(virtual_register); |
} |
if (operand->HasFixedSlotPolicy()) { |
- allocated = AllocatedOperand(AllocatedOperand::STACK_SLOT, machine_type, |
- operand->fixed_slot_index()); |
+ AllocatedOperand::AllocatedKind kind = |
+ IsFloatingPoint(machine_type) ? AllocatedOperand::DOUBLE_STACK_SLOT |
+ : AllocatedOperand::STACK_SLOT; |
+ allocated = |
+ AllocatedOperand(kind, machine_type, operand->fixed_slot_index()); |
} else if (operand->HasFixedRegisterPolicy()) { |
allocated = AllocatedOperand(AllocatedOperand::REGISTER, machine_type, |
operand->fixed_register_index()); |