v8/test/mjsunit/harmony/weakrefs
tzik 07011cc4f0 Replace %RunMicrotasks with %PerformMicrotaskCheckpoint
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/1360095
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58068}
2018-12-06 11:10:18 +00:00
..
basics.js [js weak refs] Add WeakFactory.prototype.cleanupSome 2018-11-13 14:56:14 +00:00
cleanup-doesnt-iterate-all-cells.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
cleanup-from-different-realm.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
cleanup-is-a-microtask.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
cleanup-proxy-from-different-realm.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
cleanupsome-cleared-weakcell.js [js weak refs] Add WeakFactory.prototype.cleanupSome 2018-11-13 14:56:14 +00:00
cleanupsome-dereffed-and-cleared-weakref.js Replace %RunMicrotasks with %PerformMicrotaskCheckpoint 2018-12-06 11:10:18 +00:00
cleanupsome-dereffed-weakref.js Replace %RunMicrotasks with %PerformMicrotaskCheckpoint 2018-12-06 11:10:18 +00:00
cleanupsome-weakcell.js [js weak refs] Add WeakFactory.prototype.cleanupSome 2018-11-13 14:56:14 +00:00
cleanupsome-weakref.js Replace %RunMicrotasks with %PerformMicrotaskCheckpoint 2018-12-06 11:10:18 +00:00
clear-after-cleanup.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
clear-after-deref.js Replace %RunMicrotasks with %PerformMicrotaskCheckpoint 2018-12-06 11:10:18 +00:00
clear-before-cleanup.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
clear-called-twice.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
clear-clears-factory-pointer.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
clear-inside-cleanup1.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
clear-inside-cleanup2.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
clear-inside-cleanup3.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
clear-inside-cleanup4.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
clear-when-cleanup-already-scheduled.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
factory-scheduled-for-cleanup-multiple-times.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
iterating-weak-cells.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
multiple-dirty-weak-factories.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
two-weakrefs.js Replace %RunMicrotasks with %PerformMicrotaskCheckpoint 2018-12-06 11:10:18 +00:00
weak-cell-basics.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
weak-factory-keeps-weak-cells-alive.js [js weak refs] Disable incremental marking for harmony/weakrefs tests 2018-10-30 10:03:56 +00:00
weakcell-and-weakref.js Replace %RunMicrotasks with %PerformMicrotaskCheckpoint 2018-12-06 11:10:18 +00:00
weakref-creation-keeps-alive.js Replace %RunMicrotasks with %PerformMicrotaskCheckpoint 2018-12-06 11:10:18 +00:00
weakref-deref-keeps-alive.js Replace %RunMicrotasks with %PerformMicrotaskCheckpoint 2018-12-06 11:10:18 +00:00