• tzik's avatar
    Move MicrotasksPolicy management to MicrotaskQueue · df95cff9
    tzik authored
    This CL moves MicrotasksPolicy from Isolate's HandleScopeImplementer
    to MicrotaskQueue for better non-default MicrotaskQueue support.
    
    After this:
     * MicrotaskPolicy is per-MicrotaskQueue rather than single global one.
     * ENTER_V8 runs MicrotaskQueue associated to the current Context, rather
       than the default_microtask_queue().
     * SuppressMicrotaskExecutionScope and MicrotasksScope are ready to
       take MicrotaskQueue parameter, rather than using the default one.
    
    Note that there's no way to use a non-default microtask queue until we
    expose it as a V8 API.
    
    Bug: v8:8124
    Change-Id: I79cbc53d26d9f3f4cfb7c64d303b12e395b76815
    Reviewed-on: https://chromium-review.googlesource.com/c/1429720Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
    Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#59517}
    df95cff9
api.h 20.2 KB