Commit a39544b6 authored by marija.antic's avatar marija.antic Committed by Commit bot

MIPS64: Fix '[generators] Decouple generator resume from fullcodegen.'

Fix for multiple test failures occurring since ResumeGeneratorTrampoline
was introduced with the change 974721c6.

BUG=

Review URL: https://codereview.chromium.org/1869343003

Cr-Commit-Position: refs/heads/master@{#35373}
parent 87e7cd7f
...@@ -721,10 +721,10 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { ...@@ -721,10 +721,10 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
__ Branch(&skip_flooding, eq, t1, Operand(zero_reg)); __ Branch(&skip_flooding, eq, t1, Operand(zero_reg));
{ {
FrameScope scope(masm, StackFrame::INTERNAL); FrameScope scope(masm, StackFrame::INTERNAL);
__ Push(a1, a2, t0); __ Push(a1, a2, a4);
__ CallRuntime(Runtime::kDebugPrepareStepInIfStepping); __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping);
__ Pop(a1, a2); __ Pop(a1, a2);
__ ld(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset));
} }
__ bind(&skip_flooding); __ bind(&skip_flooding);
...@@ -770,7 +770,7 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { ...@@ -770,7 +770,7 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
__ ld(a3, FieldMemOperand(a0, FixedArray::kLengthOffset)); __ ld(a3, FieldMemOperand(a0, FixedArray::kLengthOffset));
__ SmiUntag(a3); __ SmiUntag(a3);
__ Daddu(a0, a0, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); __ Daddu(a0, a0, Operand(FixedArray::kHeaderSize - kHeapObjectTag));
__ Lsa(a3, a0, a3, kPointerSizeLog2); __ Dlsa(a3, a0, a3, kPointerSizeLog2);
{ {
Label done_loop, loop; Label done_loop, loop;
__ bind(&loop); __ bind(&loop);
......
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