Index: src/compiler/x64/instruction-selector-x64.cc |
diff --git a/src/compiler/x64/instruction-selector-x64.cc b/src/compiler/x64/instruction-selector-x64.cc |
index 6d8815f5b9326f47f911d7b7cb0dbf1fb13ac91d..011c3b1b4d84ac160cfd177dbb77dc11cfd503c3 100644 |
--- a/src/compiler/x64/instruction-selector-x64.cc |
+++ b/src/compiler/x64/instruction-selector-x64.cc |
@@ -279,6 +279,15 @@ ArchOpcode GetStoreOpcode(StoreRepresentation store_rep) { |
} // 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()); |
X64OperandGenerator g(this); |