Reviewers: jochen,
Description:
Always run the second pass of the phantom callbacks synchronously if
--predictable or --optimize_for_size are set.
[email protected]
Please review this at https://codereview.chromium.org/1245093004/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+1, -1 lines):
M src/global-handles.cc
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(
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.