| 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 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 } | 1356 } |
| 1357 | 1357 |
| 1358 void InstructionSelector::EmitPrepareArguments( | 1358 void InstructionSelector::EmitPrepareArguments( |
| 1359 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, | 1359 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, |
| 1360 Node* node) { | 1360 Node* node) { |
| 1361 Mips64OperandGenerator g(this); | 1361 Mips64OperandGenerator g(this); |
| 1362 | 1362 |
| 1363 // Prepare for C function call. | 1363 // Prepare for C function call. |
| 1364 if (descriptor->IsCFunctionCall()) { | 1364 if (descriptor->IsCFunctionCall()) { |
| 1365 Emit(kArchPrepareCallCFunction | | 1365 Emit(kArchPrepareCallCFunction | |
| 1366 MiscField::encode(static_cast<int>(descriptor->CParameterCount())), | 1366 MiscField::encode(static_cast<int>(descriptor->ParameterCount())), |
| 1367 0, nullptr, 0, nullptr); | 1367 0, nullptr, 0, nullptr); |
| 1368 | 1368 |
| 1369 // Poke any stack arguments. | 1369 // Poke any stack arguments. |
| 1370 int slot = kCArgSlotCount; | 1370 int slot = kCArgSlotCount; |
| 1371 for (PushParameter input : (*arguments)) { | 1371 for (PushParameter input : (*arguments)) { |
| 1372 Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()), | 1372 Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()), |
| 1373 g.TempImmediate(slot << kPointerSizeLog2)); | 1373 g.TempImmediate(slot << kPointerSizeLog2)); |
| 1374 ++slot; | 1374 ++slot; |
| 1375 } | 1375 } |
| 1376 } else { | 1376 } else { |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2086 } else { | 2086 } else { |
| 2087 DCHECK(kArchVariant == kMips64r2); | 2087 DCHECK(kArchVariant == kMips64r2); |
| 2088 return MachineOperatorBuilder::AlignmentRequirements:: | 2088 return MachineOperatorBuilder::AlignmentRequirements:: |
| 2089 NoUnalignedAccessSupport(); | 2089 NoUnalignedAccessSupport(); |
| 2090 } | 2090 } |
| 2091 } | 2091 } |
| 2092 | 2092 |
| 2093 } // namespace compiler | 2093 } // namespace compiler |
| 2094 } // namespace internal | 2094 } // namespace internal |
| 2095 } // namespace v8 | 2095 } // namespace v8 |
| OLD | NEW |