OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ppc/frames-ppc.h" | 9 #include "src/ppc/frames-ppc.h" |
10 | 10 |
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1860 | 1860 |
1861 | 1861 |
1862 void InstructionSelector::EmitPrepareArguments( | 1862 void InstructionSelector::EmitPrepareArguments( |
1863 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, | 1863 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, |
1864 Node* node) { | 1864 Node* node) { |
1865 PPCOperandGenerator g(this); | 1865 PPCOperandGenerator g(this); |
1866 | 1866 |
1867 // Prepare for C function call. | 1867 // Prepare for C function call. |
1868 if (descriptor->IsCFunctionCall()) { | 1868 if (descriptor->IsCFunctionCall()) { |
1869 Emit(kArchPrepareCallCFunction | | 1869 Emit(kArchPrepareCallCFunction | |
1870 MiscField::encode(static_cast<int>(descriptor->CParameterCount())), | 1870 MiscField::encode(static_cast<int>(descriptor->ParameterCount())), |
1871 0, nullptr, 0, nullptr); | 1871 0, nullptr, 0, nullptr); |
1872 | 1872 |
1873 // Poke any stack arguments. | 1873 // Poke any stack arguments. |
1874 int slot = kStackFrameExtraParamSlot; | 1874 int slot = kStackFrameExtraParamSlot; |
1875 for (PushParameter input : (*arguments)) { | 1875 for (PushParameter input : (*arguments)) { |
1876 Emit(kPPC_StoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()), | 1876 Emit(kPPC_StoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()), |
1877 g.TempImmediate(slot)); | 1877 g.TempImmediate(slot)); |
1878 ++slot; | 1878 ++slot; |
1879 } | 1879 } |
1880 } else { | 1880 } else { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2021 // static | 2021 // static |
2022 MachineOperatorBuilder::AlignmentRequirements | 2022 MachineOperatorBuilder::AlignmentRequirements |
2023 InstructionSelector::AlignmentRequirements() { | 2023 InstructionSelector::AlignmentRequirements() { |
2024 return MachineOperatorBuilder::AlignmentRequirements:: | 2024 return MachineOperatorBuilder::AlignmentRequirements:: |
2025 FullUnalignedAccessSupport(); | 2025 FullUnalignedAccessSupport(); |
2026 } | 2026 } |
2027 | 2027 |
2028 } // namespace compiler | 2028 } // namespace compiler |
2029 } // namespace internal | 2029 } // namespace internal |
2030 } // namespace v8 | 2030 } // namespace v8 |
OLD | NEW |