PPC/s390: initialize argc register before calling interpreter
Change-Id: I5cc99ac457d6d9e6317b5a910ad11c0543130e45 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2528900 Commit-Queue: Junliang Yan <junyan@redhat.com> Reviewed-by: Milad Fa <mfarazma@redhat.com> Cr-Commit-Position: refs/heads/master@{#71092}
This commit is contained in:
parent
f792114b04
commit
7555761b9b
@ -464,6 +464,10 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
|
|||||||
|
|
||||||
// Resume (Ignition/TurboFan) generator object.
|
// Resume (Ignition/TurboFan) generator object.
|
||||||
{
|
{
|
||||||
|
__ LoadP(r3, FieldMemOperand(r7, JSFunction::kSharedFunctionInfoOffset));
|
||||||
|
__ LoadHalfWord(
|
||||||
|
r3,
|
||||||
|
FieldMemOperand(r3, SharedFunctionInfo::kFormalParameterCountOffset));
|
||||||
// We abuse new.target both to indicate that this is a resume call and to
|
// We abuse new.target both to indicate that this is a resume call and to
|
||||||
// pass in the generator object. In ordinary calls, new.target is always
|
// pass in the generator object. In ordinary calls, new.target is always
|
||||||
// undefined because generator functions are non-constructable.
|
// undefined because generator functions are non-constructable.
|
||||||
|
@ -456,6 +456,10 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
|
|||||||
|
|
||||||
// Resume (Ignition/TurboFan) generator object.
|
// Resume (Ignition/TurboFan) generator object.
|
||||||
{
|
{
|
||||||
|
__ LoadP(r2, FieldMemOperand(r6, JSFunction::kSharedFunctionInfoOffset));
|
||||||
|
__ LoadHalfWordP(
|
||||||
|
r2,
|
||||||
|
FieldMemOperand(r2, SharedFunctionInfo::kFormalParameterCountOffset));
|
||||||
// We abuse new.target both to indicate that this is a resume call and to
|
// We abuse new.target both to indicate that this is a resume call and to
|
||||||
// pass in the generator object. In ordinary calls, new.target is always
|
// pass in the generator object. In ordinary calls, new.target is always
|
||||||
// undefined because generator functions are non-constructable.
|
// undefined because generator functions are non-constructable.
|
||||||
|
Loading…
Reference in New Issue
Block a user