Commit 0af39628 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[turbofan] Simplify some HintsVector constructions.

Bug: v8:7790
Change-Id: I0576e44aad53f0d2a14526749ec7cc0140a54ab8
Reviewed-on: https://chromium-review.googlesource.com/c/1443052
Commit-Queue: Georg Neis <neis@chromium.org>
Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59178}
parent b022e825
......@@ -341,9 +341,7 @@ void SerializerForBackgroundCompilation::VisitCallUndefinedReceiver0(
Hints receiver(zone());
receiver.AddConstant(broker()->isolate()->factory()->undefined_value());
HintsVector parameters(zone());
parameters.push_back(receiver);
HintsVector parameters({receiver}, zone());
ProcessCallOrConstruct(callee, base::nullopt, parameters, slot);
}
......@@ -358,10 +356,7 @@ void SerializerForBackgroundCompilation::VisitCallUndefinedReceiver1(
Hints receiver(zone());
receiver.AddConstant(broker()->isolate()->factory()->undefined_value());
HintsVector parameters(zone());
parameters.push_back(receiver);
parameters.push_back(arg0);
HintsVector parameters({receiver, arg0}, zone());
ProcessCallOrConstruct(callee, base::nullopt, parameters, slot);
}
......@@ -378,11 +373,7 @@ void SerializerForBackgroundCompilation::VisitCallUndefinedReceiver2(
Hints receiver(zone());
receiver.AddConstant(broker()->isolate()->factory()->undefined_value());
HintsVector parameters(zone());
parameters.push_back(receiver);
parameters.push_back(arg0);
parameters.push_back(arg1);
HintsVector parameters({receiver, arg0, arg1}, zone());
ProcessCallOrConstruct(callee, base::nullopt, parameters, slot);
}
......@@ -409,9 +400,7 @@ void SerializerForBackgroundCompilation::VisitCallProperty0(
environment()->register_hints(iterator->GetRegisterOperand(1));
FeedbackSlot slot = FeedbackVector::ToSlot(iterator->GetIndexOperand(2));
HintsVector parameters(zone());
parameters.push_back(receiver);
HintsVector parameters({receiver}, zone());
ProcessCallOrConstruct(callee, base::nullopt, parameters, slot);
}
......@@ -425,10 +414,7 @@ void SerializerForBackgroundCompilation::VisitCallProperty1(
environment()->register_hints(iterator->GetRegisterOperand(2));
FeedbackSlot slot = FeedbackVector::ToSlot(iterator->GetIndexOperand(3));
HintsVector parameters(zone());
parameters.push_back(receiver);
parameters.push_back(arg0);
HintsVector parameters({receiver, arg0}, zone());
ProcessCallOrConstruct(callee, base::nullopt, parameters, slot);
}
......@@ -444,11 +430,7 @@ void SerializerForBackgroundCompilation::VisitCallProperty2(
environment()->register_hints(iterator->GetRegisterOperand(3));
FeedbackSlot slot = FeedbackVector::ToSlot(iterator->GetIndexOperand(4));
HintsVector parameters(zone());
parameters.push_back(receiver);
parameters.push_back(arg0);
parameters.push_back(arg1);
HintsVector parameters({receiver, arg0, arg1}, zone());
ProcessCallOrConstruct(callee, base::nullopt, parameters, slot);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment