Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index 1d2be3827460ffa294c2ac78e779833d77069f77..1021c26bc8e4083da275928e22e849837cc3d3e2 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -220,14 +220,14 @@ void CodeGenerator::RecordSafepoint(ReferenceMap* references, |
frame()->GetTotalFrameSlotCount() - frame()->GetSpillSlotCount(); |
for (auto& operand : references->reference_operands()) { |
if (operand.IsStackSlot()) { |
- int index = StackSlotOperand::cast(operand).index(); |
+ int index = LocationOperand::cast(operand).index(); |
DCHECK(index >= 0); |
// Safepoint table indices are 0-based from the beginning of the spill |
// slot area, adjust appropriately. |
index -= stackSlotToSpillSlotDelta; |
safepoint.DefinePointerSlot(index, zone()); |
} else if (operand.IsRegister() && (kind & Safepoint::kWithRegisters)) { |
- Register reg = RegisterOperand::cast(operand).GetRegister(); |
+ Register reg = LocationOperand::cast(operand).GetRegister(); |
safepoint.DefinePointerRegister(reg, zone()); |
} |
} |
@@ -589,21 +589,20 @@ void CodeGenerator::AddTranslationForOperand(Translation* translation, |
MachineType type) { |
if (op->IsStackSlot()) { |
if (type == kMachBool || type == kRepBit) { |
- translation->StoreBoolStackSlot(StackSlotOperand::cast(op)->index()); |
+ translation->StoreBoolStackSlot(LocationOperand::cast(op)->index()); |
} else if (type == kMachInt32 || type == kMachInt8 || type == kMachInt16) { |
- translation->StoreInt32StackSlot(StackSlotOperand::cast(op)->index()); |
+ translation->StoreInt32StackSlot(LocationOperand::cast(op)->index()); |
} else if (type == kMachUint32 || type == kMachUint16 || |
type == kMachUint8) { |
- translation->StoreUint32StackSlot(StackSlotOperand::cast(op)->index()); |
+ translation->StoreUint32StackSlot(LocationOperand::cast(op)->index()); |
} else if ((type & kRepMask) == kRepTagged) { |
- translation->StoreStackSlot(StackSlotOperand::cast(op)->index()); |
+ translation->StoreStackSlot(LocationOperand::cast(op)->index()); |
} else { |
CHECK(false); |
} |
} else if (op->IsDoubleStackSlot()) { |
DCHECK((type & (kRepFloat32 | kRepFloat64)) != 0); |
- translation->StoreDoubleStackSlot( |
- DoubleStackSlotOperand::cast(op)->index()); |
+ translation->StoreDoubleStackSlot(LocationOperand::cast(op)->index()); |
} else if (op->IsRegister()) { |
InstructionOperandConverter converter(this, instr); |
if (type == kMachBool || type == kRepBit) { |