-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathnullc.natvis
201 lines (189 loc) · 5.99 KB
/
nullc.natvis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="IntrusiveList<*>">
<Expand>
<LinkedListItems>
<HeadPointer>head</HeadPointer>
<NextPointer>($T1*)next</NextPointer>
<ValueNode>this,na</ValueNode>
</LinkedListItems>
</Expand>
</Type>
<Type Name="SmallArray<*,*>">
<Expand>
<Item Name="[size]">count</Item>
<Item Name="[capacity]">max</Item>
<ArrayItems>
<Size>count</Size>
<ValuePointer>data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="ArrayView<*>">
<Expand>
<Item Name="[size]">count</Item>
<ArrayItems>
<Size>count</Size>
<ValuePointer>data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="InplaceStr">
<DisplayString>{begin,[end-begin]na}</DisplayString>
</Type>
<Type Name="ExprPointerLiteral">
<Expand>
<Item Name="[Base]">(ExprBase*)this,nd</Item>
<Item Name="poisoned">poisoned</Item>
<Item Name="ptr">ptr</Item>
<Synthetic Name="bytes" Condition="ptr != 0">
<DisplayString>size = {end-ptr}</DisplayString>
<Expand>
<Item Name="[size]">end-ptr</Item>
<ArrayItems>
<Size>end-ptr</Size>
<ValuePointer>(unsigned char*)ptr</ValuePointer>
</ArrayItems>
</Expand>
</Synthetic>
<Synthetic Name="ints" Condition="ptr != 0">
<DisplayString>size = {(end-ptr) / 4}</DisplayString>
<Expand>
<Item Name="[size]">(end-ptr) / 4</Item>
<ArrayItems>
<Size>(end-ptr) / 4</Size>
<ValuePointer>(unsigned*)ptr</ValuePointer>
</ArrayItems>
</Expand>
</Synthetic>
<Synthetic Name="pointers" Condition="ptr != 0">
<DisplayString>size = {(end-ptr) / 4}</DisplayString>
<Expand>
<Item Name="[size]">(end-ptr) / 4</Item>
<ArrayItems>
<Size>(end-ptr) / 4</Size>
<ValuePointer>(unsigned**)ptr</ValuePointer>
</ArrayItems>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="FastVector<*,*,*>">
<Expand>
<Item Name="[size]">count</Item>
<Item Name="[capacity]">max</Item>
<ArrayItems>
<Size>count</Size>
<ValuePointer>data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="HashMap<*>">
<Expand>
<CustomListItems MaxItemsPerView="5000">
<Variable Name="iBucket" InitialValue="-1" />
<Variable Name="pBucket" InitialValue="entries == nullptr ? nullptr : *entries" />
<Variable Name="iBucketIncrement" InitialValue="-1" />
<Exec>pBucket = nullptr</Exec>
<Loop>
<If Condition="pBucket == nullptr">
<Exec>iBucket++</Exec>
<Exec>iBucketIncrement = __findnonnull(entries + iBucket, 1024 - iBucket)</Exec>
<Break Condition="iBucketIncrement == -1" />
<Exec>iBucket += iBucketIncrement</Exec>
<Exec>pBucket = entries[iBucket]</Exec>
</If>
<Item>pBucket,na</Item>
<Exec>pBucket = pBucket->next</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
<Type Name="FixedArray<*,*>">
<Expand HideRawView="false">
<Item Name="[size]">$T2</Item>
<ArrayItems>
<Size>$T2</Size>
<ValuePointer>data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="SmallDenseSet<*,*,*>">
<Expand HideRawView="false">
<Item Name="[size]">count</Item>
<Item Name="[capacity]">bucketCount</Item>
<Item Name="[allocator]">allocator</Item>
<ArrayItems>
<Size>bucketCount</Size>
<ValuePointer>data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="SmallDenseMap<*,*,*,*>">
<Expand HideRawView="false">
<Item Name="[size]">count</Item>
<Item Name="[capacity]">bucketCount</Item>
<Item Name="[allocator]">allocator</Item>
<ArrayItems>
<Size>bucketCount</Size>
<ValuePointer>data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="DirectChainedMap<*>">
<Expand HideRawView="false">
<Item Name="[size]">count</Item>
<Item Name="[capacity]">bucketCount</Item>
<Item Name="[allocator]">allocator</Item>
<CustomListItems MaxItemsPerView="5000">
<Variable Name="iBucket" InitialValue="0" />
<Variable Name="pBucket" InitialValue="(Node*)0" />
<Variable Name="pStart" InitialValue="(Node*)0" />
<Loop>
<Exec>pBucket = &data[iBucket]</Exec>
<If Condition="pBucket->next != nullptr">
<Exec>pStart = pBucket</Exec>
<Loop>
<Item>pBucket->value</Item>
<Exec>pBucket = pBucket->next</Exec>
<Break Condition="pBucket == pStart"/>
</Loop>
</If>
<Exec>iBucket++</Exec>
<Break Condition="iBucket == bucketCount"/>
</Loop>
</CustomListItems>
<Item Name="[data]">data</Item>
</Expand>
</Type>
<Type Name="VmLoweredBlock" IncludeView="deep">
<Expand HideRawView="1">
<LinkedListItems>
<HeadPointer>firstInstruction</HeadPointer>
<NextPointer>nextSibling</NextPointer>
<ValueNode>*this,view(deep)</ValueNode>
</LinkedListItems>
</Expand>
</Type>
<Type Name="VmLoweredInstruction" IncludeView="deep">
<DisplayString Condition="flag && helper">{cmd}: {flag->iValue}, {helper->iValue}, {argument->iValue}</DisplayString>
<DisplayString Condition="flag">{cmd}: {flag->iValue}, {argument->iValue}</DisplayString>
<DisplayString Condition="helper">{cmd}: {helper->iValue}, {argument->iValue}</DisplayString>
<DisplayString Condition="argument">{cmd}: {argument->iValue}</DisplayString>
<DisplayString>{cmd}</DisplayString>
<Expand HideRawView="1">
<Item Name="cmd">cmd</Item>
<Item Name="flag" Condition="flag">flag->iValue</Item>
<Item Name="helper" Condition="helper">helper->iValue</Item>
<Item Name="argument" Condition="argument">argument->iValue</Item>
</Expand>
</Type>
<Type Name="ScopeLookupResult">
<DisplayString Condition="variable">{variable}</DisplayString>
<DisplayString Condition="function">{function}</DisplayString>
<Expand HideRawView="1">
<Item Name="variable" Condition="variable">variable</Item>
<Item Name="function" Condition="function">function</Item>
</Expand>
</Type>
</AutoVisualizer>