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

Side by Side Diff: src/compiler/mips64/instruction-selector-mips64.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
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 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 } 1363 }
1364 1364
1365 void InstructionSelector::EmitPrepareArguments( 1365 void InstructionSelector::EmitPrepareArguments(
1366 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, 1366 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor,
1367 Node* node) { 1367 Node* node) {
1368 Mips64OperandGenerator g(this); 1368 Mips64OperandGenerator g(this);
1369 1369
1370 // Prepare for C function call. 1370 // Prepare for C function call.
1371 if (descriptor->IsCFunctionCall()) { 1371 if (descriptor->IsCFunctionCall()) {
1372 Emit(kArchPrepareCallCFunction | 1372 Emit(kArchPrepareCallCFunction |
1373 MiscField::encode(static_cast<int>(descriptor->CParameterCount())), 1373 MiscField::encode(static_cast<int>(descriptor->ParameterCount())),
1374 0, nullptr, 0, nullptr); 1374 0, nullptr, 0, nullptr);
1375 1375
1376 // Poke any stack arguments. 1376 // Poke any stack arguments.
1377 int slot = kCArgSlotCount; 1377 int slot = kCArgSlotCount;
1378 for (PushParameter input : (*arguments)) { 1378 for (PushParameter input : (*arguments)) {
1379 Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()), 1379 Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()),
1380 g.TempImmediate(slot << kPointerSizeLog2)); 1380 g.TempImmediate(slot << kPointerSizeLog2));
1381 ++slot; 1381 ++slot;
1382 } 1382 }
1383 } else { 1383 } else {
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
2093 } else { 2093 } else {
2094 DCHECK(kArchVariant == kMips64r2); 2094 DCHECK(kArchVariant == kMips64r2);
2095 return MachineOperatorBuilder::AlignmentRequirements:: 2095 return MachineOperatorBuilder::AlignmentRequirements::
2096 NoUnalignedAccessSupport(); 2096 NoUnalignedAccessSupport();
2097 } 2097 }
2098 } 2098 }
2099 2099
2100 } // namespace compiler 2100 } // namespace compiler
2101 } // namespace internal 2101 } // namespace internal
2102 } // namespace v8 2102 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/instruction-selector-mips.cc ('k') | src/compiler/ppc/instruction-selector-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698