Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Side by Side Diff: src/compiler/arm/instruction-selector-arm.cc

Issue 2124023003: [turbofan] Add MachineType to LinkageLocation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/c-linkage.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/compiler/c-linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698