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 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1469 } | 1469 } |
1470 | 1470 |
1471 void InstructionSelector::EmitPrepareArguments( | 1471 void InstructionSelector::EmitPrepareArguments( |
1472 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, | 1472 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, |
1473 Node* node) { | 1473 Node* node) { |
1474 ArmOperandGenerator g(this); | 1474 ArmOperandGenerator g(this); |
1475 | 1475 |
1476 // Prepare for C function call. | 1476 // Prepare for C function call. |
1477 if (descriptor->IsCFunctionCall()) { | 1477 if (descriptor->IsCFunctionCall()) { |
1478 Emit(kArchPrepareCallCFunction | | 1478 Emit(kArchPrepareCallCFunction | |
1479 MiscField::encode(static_cast<int>(descriptor->CParameterCount())), | 1479 MiscField::encode(static_cast<int>(descriptor->ParameterCount())), |
1480 0, nullptr, 0, nullptr); | 1480 0, nullptr, 0, nullptr); |
1481 | 1481 |
1482 // Poke any stack arguments. | 1482 // Poke any stack arguments. |
1483 for (size_t n = 0; n < arguments->size(); ++n) { | 1483 for (size_t n = 0; n < arguments->size(); ++n) { |
1484 PushParameter input = (*arguments)[n]; | 1484 PushParameter input = (*arguments)[n]; |
1485 if (input.node()) { | 1485 if (input.node()) { |
1486 int slot = static_cast<int>(n); | 1486 int slot = static_cast<int>(n); |
1487 Emit(kArmPoke | MiscField::encode(slot), g.NoOutput(), | 1487 Emit(kArmPoke | MiscField::encode(slot), g.NoOutput(), |
1488 g.UseRegister(input.node())); | 1488 g.UseRegister(input.node())); |
1489 } | 1489 } |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2004 // static | 2004 // static |
2005 MachineOperatorBuilder::AlignmentRequirements | 2005 MachineOperatorBuilder::AlignmentRequirements |
2006 InstructionSelector::AlignmentRequirements() { | 2006 InstructionSelector::AlignmentRequirements() { |
2007 return MachineOperatorBuilder::AlignmentRequirements:: | 2007 return MachineOperatorBuilder::AlignmentRequirements:: |
2008 FullUnalignedAccessSupport(); | 2008 FullUnalignedAccessSupport(); |
2009 } | 2009 } |
2010 | 2010 |
2011 } // namespace compiler | 2011 } // namespace compiler |
2012 } // namespace internal | 2012 } // namespace internal |
2013 } // namespace v8 | 2013 } // namespace v8 |
OLD | NEW |