Index: src/compiler/ia32/instruction-selector-ia32.cc |
diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc |
index b0872aa7e5d26c53851e8c6df353e9d8bb906604..dccfced9e1da2596d7cede9bcfae121f3deae243 100644 |
--- a/src/compiler/ia32/instruction-selector-ia32.cc |
+++ b/src/compiler/ia32/instruction-selector-ia32.cc |
@@ -212,6 +212,14 @@ void VisitFloatUnop(InstructionSelector* selector, Node* node, Node* input, |
} // namespace |
+void InstructionSelector::VisitStackSlot(Node* node) { |
+ StackSlotRepresentation rep = StackSlotRepresentationOf(node->op()); |
+ int slot = frame_->AllocateSpillSlot(rep.size()); |
+ OperandGenerator g(this); |
+ |
+ Emit(kArchStackSlot, g.DefineAsRegister(node), |
+ sequence()->AddImmediate(Constant(slot)), 0, nullptr); |
+} |
void InstructionSelector::VisitLoad(Node* node) { |
LoadRepresentation load_rep = LoadRepresentationOf(node->op()); |