Make DebugPrint use Object::Print if available
If v8_enable_object_print is set to true, we should use Object::Print instead of Brief(Object). R=jkummerow@chromium.org Change-Id: I70583c15834f9332aba7760b5e104136712d4e0d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1930613 Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/master@{#65112}
This commit is contained in:
parent
fe201628e7
commit
8764dbc54c
@ -751,7 +751,7 @@ RUNTIME_FUNCTION(Runtime_DebugPrint) {
|
||||
Object object = maybe_object.GetHeapObjectOrSmi();
|
||||
bool weak = maybe_object.IsWeak();
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef OBJECT_PRINT
|
||||
if (object.IsString() && !isolate->context().is_null()) {
|
||||
DCHECK(!weak);
|
||||
// If we have a string, assume it's a code "marker"
|
||||
|
Loading…
Reference in New Issue
Block a user