• Benedikt Meurer's avatar
    [async-await] Turn await closures into intrinsics. · d97bb317
    Benedikt Meurer authored
    There's no need to have the AsyncFunctionAwait/AsyncGeneratorAwait
    operations as separate closures that are called via JavaScript calling
    convention, but instead we can just have them as intrinsics (with the
    goal to eventually turn them into IC stubs).
    
    Drive-by-fix: Tail call to the ResumeGenerator builtin when resuming
    an async function. The earlier restrictions no only apply with the new
    machinery.
    
    Bug: v8:7253
    Change-Id: I0c4d04dae15b4211158fc07151adafda69d4faec
    Reviewed-on: https://chromium-review.googlesource.com/924703Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#51382}
    d97bb317
ForOfLoop.golden 49.4 KB