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/base/bits.h" | 6 #include "src/base/bits.h" |
7 #include "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
10 | 10 |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 } | 950 } |
951 | 951 |
952 void InstructionSelector::EmitPrepareArguments( | 952 void InstructionSelector::EmitPrepareArguments( |
953 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, | 953 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, |
954 Node* node) { | 954 Node* node) { |
955 MipsOperandGenerator g(this); | 955 MipsOperandGenerator g(this); |
956 | 956 |
957 // Prepare for C function call. | 957 // Prepare for C function call. |
958 if (descriptor->IsCFunctionCall()) { | 958 if (descriptor->IsCFunctionCall()) { |
959 Emit(kArchPrepareCallCFunction | | 959 Emit(kArchPrepareCallCFunction | |
960 MiscField::encode(static_cast<int>(descriptor->CParameterCount())), | 960 MiscField::encode(static_cast<int>(descriptor->ParameterCount())), |
961 0, nullptr, 0, nullptr); | 961 0, nullptr, 0, nullptr); |
962 | 962 |
963 // Poke any stack arguments. | 963 // Poke any stack arguments. |
964 int slot = kCArgSlotCount; | 964 int slot = kCArgSlotCount; |
965 for (PushParameter input : (*arguments)) { | 965 for (PushParameter input : (*arguments)) { |
966 if (input.node()) { | 966 if (input.node()) { |
967 Emit(kMipsStoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()), | 967 Emit(kMipsStoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()), |
968 g.TempImmediate(slot << kPointerSizeLog2)); | 968 g.TempImmediate(slot << kPointerSizeLog2)); |
969 ++slot; | 969 ++slot; |
970 } | 970 } |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1583 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || | 1583 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || |
1584 IsMipsArchVariant(kMips32r2)); | 1584 IsMipsArchVariant(kMips32r2)); |
1585 return MachineOperatorBuilder::AlignmentRequirements:: | 1585 return MachineOperatorBuilder::AlignmentRequirements:: |
1586 NoUnalignedAccessSupport(); | 1586 NoUnalignedAccessSupport(); |
1587 } | 1587 } |
1588 } | 1588 } |
1589 | 1589 |
1590 } // namespace compiler | 1590 } // namespace compiler |
1591 } // namespace internal | 1591 } // namespace internal |
1592 } // namespace v8 | 1592 } // namespace v8 |
OLD | NEW |