| 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 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 } | 957 } |
| 958 | 958 |
| 959 void InstructionSelector::EmitPrepareArguments( | 959 void InstructionSelector::EmitPrepareArguments( |
| 960 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, | 960 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, |
| 961 Node* node) { | 961 Node* node) { |
| 962 MipsOperandGenerator g(this); | 962 MipsOperandGenerator g(this); |
| 963 | 963 |
| 964 // Prepare for C function call. | 964 // Prepare for C function call. |
| 965 if (descriptor->IsCFunctionCall()) { | 965 if (descriptor->IsCFunctionCall()) { |
| 966 Emit(kArchPrepareCallCFunction | | 966 Emit(kArchPrepareCallCFunction | |
| 967 MiscField::encode(static_cast<int>(descriptor->CParameterCount())), | 967 MiscField::encode(static_cast<int>(descriptor->ParameterCount())), |
| 968 0, nullptr, 0, nullptr); | 968 0, nullptr, 0, nullptr); |
| 969 | 969 |
| 970 // Poke any stack arguments. | 970 // Poke any stack arguments. |
| 971 int slot = kCArgSlotCount; | 971 int slot = kCArgSlotCount; |
| 972 for (PushParameter input : (*arguments)) { | 972 for (PushParameter input : (*arguments)) { |
| 973 if (input.node()) { | 973 if (input.node()) { |
| 974 Emit(kMipsStoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()), | 974 Emit(kMipsStoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()), |
| 975 g.TempImmediate(slot << kPointerSizeLog2)); | 975 g.TempImmediate(slot << kPointerSizeLog2)); |
| 976 ++slot; | 976 ++slot; |
| 977 } | 977 } |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || | 1590 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || |
| 1591 IsMipsArchVariant(kMips32r2)); | 1591 IsMipsArchVariant(kMips32r2)); |
| 1592 return MachineOperatorBuilder::AlignmentRequirements:: | 1592 return MachineOperatorBuilder::AlignmentRequirements:: |
| 1593 NoUnalignedAccessSupport(); | 1593 NoUnalignedAccessSupport(); |
| 1594 } | 1594 } |
| 1595 } | 1595 } |
| 1596 | 1596 |
| 1597 } // namespace compiler | 1597 } // namespace compiler |
| 1598 } // namespace internal | 1598 } // namespace internal |
| 1599 } // namespace v8 | 1599 } // namespace v8 |
| OLD | NEW |