diff options
Diffstat (limited to 'deps/v8/src/compiler/x87/instruction-selector-x87.cc')
-rw-r--r-- | deps/v8/src/compiler/x87/instruction-selector-x87.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/v8/src/compiler/x87/instruction-selector-x87.cc b/deps/v8/src/compiler/x87/instruction-selector-x87.cc index c11ac287d0..b5594b8894 100644 --- a/deps/v8/src/compiler/x87/instruction-selector-x87.cc +++ b/deps/v8/src/compiler/x87/instruction-selector-x87.cc @@ -168,6 +168,14 @@ class X87OperandGenerator final : public OperandGenerator { } }; +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()); |