Index: src/compiler/mips/instruction-selector-mips.cc |
diff --git a/src/compiler/mips/instruction-selector-mips.cc b/src/compiler/mips/instruction-selector-mips.cc |
index f831d54ac9c9ae87a8d22d85cb916df64fb6f0ef..b661aabeeb10ad3b774b270281ebd0f610f82af2 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -256,6 +256,16 @@ static void VisitBinop(InstructionSelector* selector, Node* node, |
VisitBinop(selector, node, opcode, false, kArchNop); |
} |
+void InstructionSelector::VisitStackSlot(Node* node) { |
+ StackSlotRepresentation rep = StackSlotRepresentationOf(node->op()); |
+ int alignment = rep.alignment(); |
+ int slot = frame_->AllocateSpillSlot(rep.size(), alignment); |
+ OperandGenerator g(this); |
+ |
+ Emit(kArchStackSlot, g.DefineAsRegister(node), |
+ sequence()->AddImmediate(Constant(slot)), |
+ sequence()->AddImmediate(Constant(alignment)), 0, nullptr); |
+} |
void InstructionSelector::VisitLoad(Node* node) { |
LoadRepresentation load_rep = LoadRepresentationOf(node->op()); |