blob: 5bdd9a4ba3c1b1145b527b72bff0640416941ea7 [file] [log] [blame]
basuke.suzuki@sony.com9af41b412020-03-05 07:50:47 +00001<?xml version="1.0" encoding="utf-8"?>
2<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
3 <!--
4 Place this file to %USERPROFILE%\Documents\Visual Studio 2019\Visualizers
5 For more info:
6 https://docs.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects?view=vs-2019
7 -->
8 <Type Name="WTF::RefPtr&lt;*&gt;">
9 <DisplayString Condition="m_ptr == 0">empty</DisplayString>
10 <DisplayString>{*m_ptr}</DisplayString>
11 </Type>
12 <Type Name="WTF::UniqueRef&lt;*&gt;">
13 <DisplayString>{m_ref}</DisplayString>
14 </Type>
15
16 <Type Name="WTF::StringImplShape">
17 <!-- AtomString -->
18 <DisplayString Condition="(m_hashAndFlags &amp; 0x10) &amp;&amp; (m_hashAndFlags &amp; 4)">
19 Atom:{m_data8,[m_length]s}
20 </DisplayString>
21 <DisplayString Condition="(m_hashAndFlags &amp; 0x10)">
22 Atom:{m_data16,[m_length]su}
23 </DisplayString>
24
25 <!-- Symbol -->
26 <DisplayString Condition="(m_hashAndFlags &amp; 0x20) &amp;&amp; (m_hashAndFlags &amp; 4)">
27 &lt;{m_data8,[m_length]s}&gt;
28 </DisplayString>
29 <DisplayString Condition="(m_hashAndFlags &amp; 0x20)">
30 &lt;{m_data16,[m_length]su}&gt;
31 </DisplayString>
32
33 <DisplayString Condition="(m_hashAndFlags &amp; 4)">
34 {m_data8,[m_length]s}
35 </DisplayString>
36 <DisplayString Condition="!(m_hashAndFlags &amp; 4)">
37 {m_data16,[m_length]su}
38 </DisplayString>
39
40 <DisplayString>not supported ({m_hashAndFlags})</DisplayString>
41 </Type>
42
Hironori.Fujii@sony.com8053e482020-09-10 03:15:42 +000043 <Type Name="WTF::StringView">
44 <DisplayString Condition="m_is8Bit">
45 {m_characters,[m_length]s}
46 </DisplayString>
47 <DisplayString Condition="!m_is8Bit">
48 {m_characters,[m_length]su}
49 </DisplayString>
50 </Type>
51
basuke.suzuki@sony.com9af41b412020-03-05 07:50:47 +000052 <Type Name="WTF::String">
53 <DisplayString>{m_impl}</DisplayString>
54 </Type>
55
56 <Type Name="IPC::StringReference">
57 <DisplayString Condition="!m_size">empty</DisplayString>
58 <DisplayString>{m_data,[m_size]s8}</DisplayString>
59 </Type>
60
61 <Type Name="IPC::Decoder">
62 <DisplayString>{m_messageReceiverName}::{m_messageName}(ID={m_destination})</DisplayString>
63 </Type>
64
65 <Type Name="WTF::URL">
66 <DisplayString>{m_string}</DisplayString>
67 </Type>
68 <Type Name="WTF::AtomString">
69 <DisplayString>{m_string} (Atom)</DisplayString>
70 </Type>
71
Hironori.Fujii@sony.com8053e482020-09-10 03:15:42 +000072 <Type Name="WTF::NeverDestroyed&lt;*,*&gt;">
73 <DisplayString>{*($T1 *)this}</DisplayString>
74 <Expand>
75 <ExpandedItem>*($T1 *)this</ExpandedItem>
76 </Expand>
77 </Type>
78
79 <Type Name="WTF::LazyNeverDestroyed&lt;*,*&gt;">
80 <DisplayString>{*($T1 *)this}</DisplayString>
81 <Expand>
82 <ExpandedItem>*($T1 *)this</ExpandedItem>
83 </Expand>
84 </Type>
85
basuke.suzuki@sony.com9af41b412020-03-05 07:50:47 +000086 <Type Name="PAL::SessionID">
87 <DisplayString>{m_identifier}</DisplayString>
88 </Type>
89
90 <Type Name="WTF::ObjectIdentifier&lt;*&gt;">
91 <DisplayString>{m_identifier}</DisplayString>
92 </Type>
93
Hironori.Fujii@sony.com8053e482020-09-10 03:15:42 +000094 <Type Name="WTF::Optional&lt;*&gt;">
95 <Intrinsic Name="has_value" Expression="init_"/>
96 <Intrinsic Name="value" Expression="storage_.value_"/>
97 <DisplayString Condition="!has_value()">nullopt</DisplayString>
98 <DisplayString Condition="has_value()">{value()}</DisplayString>
99 <Expand>
100 <Item Condition="has_value()" Name="value">value()</Item>
101 </Expand>
102 </Type>
103
basuke.suzuki@sony.com9af41b412020-03-05 07:50:47 +0000104 <Type Name="WTF::OptionSet&lt;*&gt;">
105 <DisplayString>{m_storage,x}</DisplayString>
106 </Type>
107
Hironori.Fujii@sony.com8053e482020-09-10 03:15:42 +0000108 <Type Name="WTF::VectorBufferBase&lt;*,*&gt;">
109 <DisplayString>{{ size={m_size} }}</DisplayString>
110 <Expand>
111 <Item Name="[capacity]" ExcludeView="simple">m_capacity</Item>
112 <ArrayItems>
113 <Size>m_size</Size>
114 <ValuePointer>m_buffer</ValuePointer>
115 </ArrayItems>
116 </Expand>
117 </Type>
118
basuke.suzuki@sony.com9af41b412020-03-05 07:50:47 +0000119 <Type Name="WebCore::IntSize">
120 <DisplayString>({m_width} x {m_height})</DisplayString>
121 </Type>
122
123 <!-- Networking -->
124
125 <Type Name="WebCore::ResourceRequest">
126 <DisplayString>{m_httpMethod} {m_url} {m_httpBody}</DisplayString>
127 </Type>
128</AutoVisualizer>