Files
Marco Vitale 9610f1b8cf [M157] [maglev] Use an explicit resume_mode_ handshake to skip IteratorResult
Original change's description:
> [maglev] Use an explicit resume_mode_ handshake to skip IteratorResult
>
> Previously, inlined Generator.prototype.next skipped allocating the
> IteratorResult inside the generator by using TheHole as a sentinel in
> both JSGeneratorObject::yielded_value_ and the return register, while
> passing the actual yielded value back through yielded_value_.
>
> Instead, encode the handshake in resume_mode_ using two new Smi states:
> kNextTrySkipAlloc (request) and kNextAllocSkipped (ack). With the ack in
> resume_mode_, %GeneratorYieldResult returns the bare yielded value
> directly in the return register, eliminating all accesses and write
> barriers on yielded_value_.
>
> Change-Id: I73382438bf11cb5ca64e91445898e4e16a6a6964
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8418732
> Reviewed-by: Jakob Linke <jgruber@chromium.org>
> Auto-Submit: Marco Vitale <mrcvtl@chromium.org>
> Commit-Queue: Marco Vitale <mrcvtl@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#111458}

(cherry picked from commit 6e6321b4fa)

Bug: 582713816
Change-Id: I73382438bf11cb5ca64e91445898e4e16a6a6964
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8756755
Auto-Submit: chrome-cherry-picker@chops-service-accounts.iam.gserviceaccount.com <chrome-cherry-picker@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/branch-heads/15.7@{#72}
Cr-Branched-From: d2463ed6f2dfd0bdbb642624bd3d0e7d3e792555-refs/heads/15.7.112@{#1}
Cr-Branched-From: e691155d010ebfd5dbc3204c53a14426e724dca7-refs/heads/main@{#110573}
2026-11-06 09:59:37 -08:00
..
2026-02-06 08:34:23 -08:00
2026-09-29 00:00:17 -07:00
2026-06-10 23:34:25 -07:00
…