• tzik's avatar
    Replace %RunMicrotasks with %PerformMicrotaskCheckpoint · 07011cc4
    tzik authored
    This replaces Runtime_RunMicrotasks with Runtime_PerformMicrotaskCheckpoint.
    
    RunMicrotasks forcibly runs Microtasks even when the microtasks are suppressed,
    and may causes nested Microtasks in a problematic way. E.g. that confuses
    v8::MicrotasksScope::IsRunningMicrotasks() and GetEnteredOrMicrotaskContext().
    
    OTOH, PerformMicrotaskCheckpoint() doesn't run cause the failure as it
    respects the microtask suppressions.
    
    As all existing tests don't call RunMicrotasks() in the suppressed situation
    (like Promise.resolve().then(()=>{%RunMicrotasks();})), this change should
    not affect to these tests.
    
    Change-Id: Ib043a0cc8e482e022d375084d65ea98a6f54ef3d
    Reviewed-on: https://chromium-review.googlesource.com/c/1360095Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#58068}
    07011cc4
Name
Last commit
Last update
..
basics.js Loading commit data...
cleanup-doesnt-iterate-all-cells.js Loading commit data...
cleanup-from-different-realm.js Loading commit data...
cleanup-is-a-microtask.js Loading commit data...
cleanup-proxy-from-different-realm.js Loading commit data...
cleanupsome-cleared-weakcell.js Loading commit data...
cleanupsome-dereffed-and-cleared-weakref.js Loading commit data...
cleanupsome-dereffed-weakref.js Loading commit data...
cleanupsome-weakcell.js Loading commit data...
cleanupsome-weakref.js Loading commit data...
clear-after-cleanup.js Loading commit data...
clear-after-deref.js Loading commit data...
clear-before-cleanup.js Loading commit data...
clear-called-twice.js Loading commit data...
clear-clears-factory-pointer.js Loading commit data...
clear-inside-cleanup1.js Loading commit data...
clear-inside-cleanup2.js Loading commit data...
clear-inside-cleanup3.js Loading commit data...
clear-inside-cleanup4.js Loading commit data...
clear-when-cleanup-already-scheduled.js Loading commit data...
factory-scheduled-for-cleanup-multiple-times.js Loading commit data...
iterating-weak-cells.js Loading commit data...
multiple-dirty-weak-factories.js Loading commit data...
two-weakrefs.js Loading commit data...
weak-cell-basics.js Loading commit data...
weak-factory-keeps-weak-cells-alive.js Loading commit data...
weakcell-and-weakref.js Loading commit data...
weakref-creation-keeps-alive.js Loading commit data...
weakref-deref-keeps-alive.js Loading commit data...