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

Side by Side Diff: src/compiler/mips/instruction-selector-mips.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 | « src/compiler/linkage.cc ('k') | src/compiler/mips64/instruction-selector-mips64.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 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/compiler/mips64/instruction-selector-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698