Commit 6bb49142 authored by Igor Sheludko's avatar Igor Sheludko Committed by V8 LUCI CQ

[print] Support short-printing of JSSharedStruct and JSSharedArray

Bug: v8:12547
Change-Id: I9956b91a6211345bd5a0e0f51bc04367835f82f8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3863275
Auto-Submit: Igor Sheludko <ishell@chromium.org>
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Reviewed-by: 's avatarShu-yu Guo <syg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82838}
parent fd9c2391
...@@ -2845,6 +2845,12 @@ void JSObject::JSObjectShortPrint(StringStream* accumulator) { ...@@ -2845,6 +2845,12 @@ void JSObject::JSObjectShortPrint(StringStream* accumulator) {
accumulator->Add("<JS AsyncGenerator>"); accumulator->Add("<JS AsyncGenerator>");
break; break;
} }
case JS_SHARED_ARRAY_TYPE:
accumulator->Add("<JSSharedArray>");
break;
case JS_SHARED_STRUCT_TYPE:
accumulator->Add("<JSSharedStruct>");
break;
// All other JSObjects are rather similar to each other (JSObject, // All other JSObjects are rather similar to each other (JSObject,
// JSGlobalProxy, JSGlobalObject, JSUndetectable, JSPrimitiveWrapper). // JSGlobalProxy, JSGlobalObject, JSUndetectable, JSPrimitiveWrapper).
......
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