| Index: src/global-handles.cc
|
| diff --git a/src/global-handles.cc b/src/global-handles.cc
|
| index ab48997c58ecae4c1850dd14fd2ead507d0374a5..444614c166c0a0203e8af2b530215efecbcc54cf 100644
|
| --- a/src/global-handles.cc
|
| +++ b/src/global-handles.cc
|
| @@ -840,7 +840,7 @@ int GlobalHandles::DispatchPendingPhantomCallbacks(
|
| }
|
| }
|
| if (pending_phantom_callbacks_.length() > 0) {
|
| - if (synchronous_second_pass) {
|
| + if (FLAG_optimize_for_size || FLAG_predictable || synchronous_second_pass) {
|
| InvokeSecondPassPhantomCallbacks(&pending_phantom_callbacks_, isolate());
|
| } else {
|
| auto task = new PendingPhantomCallbacksSecondPassTask(
|
|
|