Commit f528df9f authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[turbofan] Make ObjectRef printing look at --concurrent-recompilation

... in order to print more information when it's disabled.

Bug: v8:7790
Change-Id: I58a5dacbbe9551814e62b157885c83001924a59b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1835534
Auto-Submit: Georg Neis <neis@chromium.org>
Commit-Queue: Michael Stanton <mvstanton@chromium.org>
Reviewed-by: 's avatarMichael Stanton <mvstanton@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64081}
parent 28a9dc2b
......@@ -4699,9 +4699,10 @@ void ElementAccessFeedback::AddGroup(TransitionGroup&& group) {
}
std::ostream& operator<<(std::ostream& os, const ObjectRef& ref) {
if (ref.broker()->mode() == JSHeapBroker::kDisabled) {
// If the broker is disabled we cannot be in a background thread so it's
// safe to read the heap.
if (ref.broker()->mode() == JSHeapBroker::kDisabled ||
!FLAG_concurrent_recompilation) {
// We cannot be in a background thread so it's safe to read the heap.
AllowHandleDereference allow_handle_dereference;
return os << ref.data() << " {" << ref.object() << "}";
} else {
return os << ref.data();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment