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

Unified Diff: src/compiler/simplified-lowering.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/s390/instruction-selector-s390.cc ('k') | src/compiler/wasm-linkage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
index 9b5b73f2059524262841eeba5f993decc41dc0c4..f0b141224be734a97939e1acee71f5aa07fcbf15 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -917,8 +917,7 @@ class RepresentationSelector {
void VisitCall(Node* node, SimplifiedLowering* lowering) {
const CallDescriptor* desc = CallDescriptorOf(node->op());
- const MachineSignature* sig = desc->GetMachineSignature();
- int params = static_cast<int>(sig->parameter_count());
+ int params = static_cast<int>(desc->ParameterCount());
// Propagate representation information from call descriptor.
for (int i = 0; i < node->InputCount(); i++) {
if (i == 0) {
@@ -926,15 +925,14 @@ class RepresentationSelector {
ProcessInput(node, i, UseInfo::None());
} else if ((i - 1) < params) {
ProcessInput(node, i, TruncatingUseInfoFromRepresentation(
- sig->GetParam(i - 1).representation()));
+ desc->GetInputType(i).representation()));
} else {
ProcessInput(node, i, UseInfo::None());
}
}
- if (sig->return_count() > 0) {
- SetOutput(node,
- desc->GetMachineSignature()->GetReturn().representation());
+ if (desc->ReturnCount() > 0) {
+ SetOutput(node, desc->GetReturnType(0).representation());
} else {
SetOutput(node, MachineRepresentation::kTagged);
}
« no previous file with comments | « src/compiler/s390/instruction-selector-s390.cc ('k') | src/compiler/wasm-linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698