OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/base/adapters.h" | 5 #include "src/base/adapters.h" |
6 #include "src/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 #include "src/s390/frames-s390.h" | 9 #include "src/s390/frames-s390.h" |
10 | 10 |
(...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1699 } | 1699 } |
1700 | 1700 |
1701 void InstructionSelector::EmitPrepareArguments( | 1701 void InstructionSelector::EmitPrepareArguments( |
1702 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, | 1702 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, |
1703 Node* node) { | 1703 Node* node) { |
1704 S390OperandGenerator g(this); | 1704 S390OperandGenerator g(this); |
1705 | 1705 |
1706 // Prepare for C function call. | 1706 // Prepare for C function call. |
1707 if (descriptor->IsCFunctionCall()) { | 1707 if (descriptor->IsCFunctionCall()) { |
1708 Emit(kArchPrepareCallCFunction | | 1708 Emit(kArchPrepareCallCFunction | |
1709 MiscField::encode(static_cast<int>(descriptor->CParameterCount())), | 1709 MiscField::encode(static_cast<int>(descriptor->ParameterCount())), |
1710 0, nullptr, 0, nullptr); | 1710 0, nullptr, 0, nullptr); |
1711 | 1711 |
1712 // Poke any stack arguments. | 1712 // Poke any stack arguments. |
1713 int slot = kStackFrameExtraParamSlot; | 1713 int slot = kStackFrameExtraParamSlot; |
1714 for (PushParameter input : (*arguments)) { | 1714 for (PushParameter input : (*arguments)) { |
1715 Emit(kS390_StoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()), | 1715 Emit(kS390_StoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()), |
1716 g.TempImmediate(slot)); | 1716 g.TempImmediate(slot)); |
1717 ++slot; | 1717 ++slot; |
1718 } | 1718 } |
1719 } else { | 1719 } else { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1855 // static | 1855 // static |
1856 MachineOperatorBuilder::AlignmentRequirements | 1856 MachineOperatorBuilder::AlignmentRequirements |
1857 InstructionSelector::AlignmentRequirements() { | 1857 InstructionSelector::AlignmentRequirements() { |
1858 return MachineOperatorBuilder::AlignmentRequirements:: | 1858 return MachineOperatorBuilder::AlignmentRequirements:: |
1859 FullUnalignedAccessSupport(); | 1859 FullUnalignedAccessSupport(); |
1860 } | 1860 } |
1861 | 1861 |
1862 } // namespace compiler | 1862 } // namespace compiler |
1863 } // namespace internal | 1863 } // namespace internal |
1864 } // namespace v8 | 1864 } // namespace v8 |
OLD | NEW |