-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
dacdbistructures.inl
725 lines (642 loc) · 21.9 KB
/
dacdbistructures.inl
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//*****************************************************************************
//
// File: DacDbiInterface.inl
//
// Inline functions for DacDbiStructures.h
//
//*****************************************************************************
#ifndef DACDBISTRUCTURES_INL_
#define DACDBISTRUCTURES_INL_
//-----------------------------------------------------------------------------------
// DacDbiArrayList member function implementations
//-----------------------------------------------------------------------------------
// constructor--sets list to empty state
// Arguments: none
// Notes: this allocates no memory, so the list will not be ready to use
template<class T>
inline
DacDbiArrayList<T>::DacDbiArrayList():
m_pList(NULL),
m_nEntries(0)
{
}
// conversion constructor--takes a list of type T and a count and converts to a
// DacDbiArrayList
// Arguments:
// input: list - a consecutive list (array) of elements of type T
// count - the number of elements in list
// Notes: - Allocates memory and copies the elements of list into "this"
// - It is assumed that the list does NOT already have memory allocated; if it does,
// calling Init will cause a leak.
// - the element copy relies on the assignment operator for T
// - may throw OOM
template<class T>
inline
DacDbiArrayList<T>::DacDbiArrayList(const T * pList, int count):
m_pList(NULL),
m_nEntries(0)
{
Init(pList, count);
}
// destructor: deallocates memory and sets list back to empty state
// Arguments: none
template<class T>
inline
DacDbiArrayList<T>::~DacDbiArrayList()
{
Dealloc();
}
// explicitly deallocate the list and set it back to the empty state
// Arguments: none
// Notes: - Dealloc can be called multiple times without danger, since it
// checks first that memory has been allocated
template<class T>
inline
void DacDbiArrayList<T>::Dealloc()
{
CONTRACT_VOID
{
NOTHROW;
}
CONTRACT_END;
if (m_pList != NULL)
{
DeleteDbiArrayMemory(m_pList, m_nEntries);
m_pList = NULL;
}
m_nEntries = 0;
RETURN;
}
// Alloc and Init are very similar. Both preallocate the array; but Alloc leaves the
// contents uninitialized while Init provides initial values. The array contents are always
// mutable.
// allocate space for the list--in some instances, we'll know the count first, and then
// we'll compute the elements one at a time. This (along with the array access operator
// overload) allows us to handle that situation
// Arguments:
// input: nElements - number of elements of type T for which we need space
// Notes:
// - Alloc can be called multiple times and will free previous arrays.
// - May throw OOM
// - The array is not expandable, so you must allocate for all the elements at once.
// - requesting an allocation of 0 or fewer bytes will not cause an error, but no memory is
// allocated
template<class T>
inline
void DacDbiArrayList<T>::Alloc(int nElements)
{
Dealloc();
if (nElements > 0)
{
m_pList = new(forDbi) T[(size_t)nElements];
m_nEntries = nElements;
}
}
// allocate and initialize a DacDbiArrayList from a list of type T and a count
// Arguments:
// input: list - consecutive list (array) of elements of type T to be copied into
// "this"
// count - number of elements in list
// Notes:
// - May throw OOM
// - Can be called multiple times with different lists, since this will deallocate
// previous arrays.
template<class T>
inline
void DacDbiArrayList<T>::Init(const T * pList, int count)
{
_ASSERTE((m_pList == NULL) && (m_nEntries == 0));
if (count > 0)
{
Alloc(count);
m_nEntries = count;
for (int index = 0; index < count; ++index)
{
m_pList[index] = pList[index];
}
}
}
// read-only list element access
template<class T>
inline
const T & DacDbiArrayList<T>::operator [](int i) const
{
_ASSERTE(m_pList != NULL);
_ASSERTE((i >= 0) && (i < m_nEntries));
return m_pList[i];
}
// writeable list element access
template<class T>
inline
T & DacDbiArrayList<T>::operator [](int i)
{
_ASSERTE(m_pList != NULL);
_ASSERTE((i >= 0) && (i < m_nEntries));
return m_pList[i];
}
// get the number of elements in the list
template<class T>
inline
unsigned int DacDbiArrayList<T>::Count() const
{
return m_nEntries;
}
//-----------------------------------------------------------------------------
// Target Buffer functions
//-----------------------------------------------------------------------------
// Default ctor
inline
TargetBuffer::TargetBuffer()
{
this->pAddress = NULL;
this->cbSize = 0;
}
// Convenience Ctor to initialize around an (Address, size).
inline
TargetBuffer::TargetBuffer(CORDB_ADDRESS pBuffer, ULONG cbSizeInput)
{
this->pAddress = pBuffer;
this->cbSize = cbSizeInput;
}
// Convenience Ctor to initialize around an (Address, size).
inline
TargetBuffer::TargetBuffer(void * pBuffer, ULONG cbSizeInput)
{
this->pAddress = PTR_TO_CORDB_ADDRESS(pBuffer);
this->cbSize = cbSizeInput;
}
// Return a sub-buffer that's starts at byteOffset within this buffer and runs to the end.
//
// Arguments:
// byteOffset - offset in bytes within this buffer that the new buffer starts at.
//
// Returns:
// A new buffer that's a subset of the existing buffer.
inline
TargetBuffer TargetBuffer::SubBuffer(ULONG byteOffset) const
{
_ASSERTE(byteOffset <= cbSize);
return TargetBuffer(pAddress + byteOffset, cbSize - byteOffset);
}
// Return a sub-buffer that starts at byteOffset within this buffer and is byteLength long.
//
// Arguments:
// byteOffset - offset in bytes within this buffer that the new buffer starts at.
// byteLength - length in bytes of the new buffer.
//
// Returns:
// A new buffer that's a subset of the existing buffer.
inline
TargetBuffer TargetBuffer::SubBuffer(ULONG byteOffset, ULONG byteLength) const
{
_ASSERTE(byteOffset + byteLength <= cbSize);
return TargetBuffer(pAddress + byteOffset, byteLength);
}
// Sets address to NULL and size to 0
inline
void TargetBuffer::Clear()
{
pAddress = NULL;
cbSize = 0;
}
// Initialize fields
inline
void TargetBuffer::Init(CORDB_ADDRESS address, ULONG size)
{
pAddress = address;
cbSize = size;
}
// Returns true iff the buffer is empty.
inline
bool TargetBuffer::IsEmpty() const
{
return (this->cbSize == 0);
}
//-----------------------------------------------------------------------------
// NativeVarData member function implementations
//-----------------------------------------------------------------------------
// Initialize a new instance of NativeVarData
inline NativeVarData::NativeVarData() :
m_allArgsCount(0),
m_fInitialized(false)
{
}
// destructor
inline NativeVarData::~NativeVarData()
{
m_fInitialized = false;
}
// initialize the list of native var information structures, including the starting address of the list, the number of
// entries and the number of fixed args.
inline void NativeVarData::InitVarDataList(ICorDebugInfo::NativeVarInfo * pListStart,
int fixedArgCount,
int entryCount)
{
m_offsetInfo.Init(pListStart, entryCount);
m_fixedArgsCount = fixedArgCount;
m_fInitialized = true;
}
//-----------------------------------------------------------------------------
// SequencePoints member function implementations
//-----------------------------------------------------------------------------
// initializing constructor
inline SequencePoints::SequencePoints() :
m_mapCount(0),
m_lastILOffset(0),
m_fInitialized(false)
{
}
// destructor
inline SequencePoints::~SequencePoints()
{
m_fInitialized = false;
}
// Initialize the m_pMap data member to the address of an allocated chunk
// of memory (or to NULL if the count is zero). Set m_count as the
// number of entries in the map.
inline void SequencePoints::InitSequencePoints(ULONG32 count)
{
m_map.Alloc(count),
m_fInitialized = true;
}
//
// Map the given native offset to IL offset and return the mapping type.
//
// Arguments:
// dwNativeOffset - the native offset to be mapped
// pMapType - out parameter; return the mapping type
//
// Return Value:
// Return the IL offset corresponding to the given native offset.
// For a prolog, return 0.
// For an epilog, return the IL offset of the last sequence point before the epilog.
// If we can't map to an IL offset, then return 0, with a mapping type of MAPPING_NO_INFO.
//
// Assumptions:
// The sequence points are sorted.
//
inline
DWORD SequencePoints::MapNativeOffsetToIL(DWORD dwNativeOffset,
CorDebugMappingResult *pMapType)
{
//_ASSERTE(IsInitialized());
if (!IsInitialized())
{
(*pMapType) = MAPPING_NO_INFO;
return 0;
}
_ASSERTE(pMapType != NULL);
int i;
for (i = 0; i < (int)m_mapCount; ++i)
{
// Check to determine if dwNativeOffset is within this sequence point. Checking the lower bound is trivial--
// we just make sure that dwNativeOffset >= m_map[i].nativeStartOffset.
// Checking to be sure it's before the end of the range is a little trickier. We can have
// m_map[i].nativeEndOffset = 0 for two reasons:
// 1. We use an end offset of 0 to signify that this end offset is also the end of the method.
// 2. We could also have an end offset of 0 if the IL prologue doesn't translate to any native
// instructions. Thus, the first native instruction (which will not be in the prologue) is at an offset
// of 0. The end offset is always set to the start offset of the next sequence point, so this means
// that both the start and end offsets of the (non-existent) native instruction range for the
// prologue is also 0.
// If the end offset is 0, we want to check if we're in the prologue before concluding that the
// value of dwNativeOffset is out of range.
if ((dwNativeOffset >= m_map[i].nativeStartOffset) &&
(((m_map[i].nativeEndOffset == 0) && (m_map[i].ilOffset != (ULONG)ICorDebugInfo::PROLOG)) ||
(dwNativeOffset < m_map[i].nativeEndOffset)))
{
ULONG uILOffset = m_map[i].ilOffset;
if (m_map[i].ilOffset == (ULONG)ICorDebugInfo::PROLOG)
{
uILOffset = 0;
(*pMapType) = MAPPING_PROLOG;
}
else if (m_map[i].ilOffset == (ULONG)ICorDebugInfo::NO_MAPPING)
{
uILOffset = 0;
(*pMapType) = MAPPING_UNMAPPED_ADDRESS;
}
else if (m_map[i].ilOffset == (ULONG)ICorDebugInfo::EPILOG)
{
uILOffset = m_lastILOffset;
(*pMapType) = MAPPING_EPILOG;
}
else if (dwNativeOffset == m_map[i].nativeStartOffset)
{
(*pMapType) = MAPPING_EXACT;
}
else
{
(*pMapType) = MAPPING_APPROXIMATE;
}
return uILOffset;
}
}
(*pMapType) = MAPPING_NO_INFO;
return 0;
}
//
// Copy data from the VM map data to our own map structure and sort. The
// information comes to us in a data structure that differs slightly from the
// one we use out of process, so we have to copy it to the right-side struct.
// Arguments
// input
// mapCopy sequence points
// output
// pSeqPoints.m_map is initialized with the correct right side representation of sequence points
inline
void SequencePoints::CopyAndSortSequencePoints(const ICorDebugInfo::OffsetMapping mapCopy[])
{
// copy information to pSeqPoint and set end offsets
unsigned int i;
ULONG32 lastILOffset = 0;
const DWORD call_inst = (DWORD)ICorDebugInfo::CALL_INSTRUCTION;
for (i = 0; i < m_map.Count(); i++)
{
m_map[i].ilOffset = mapCopy[i].ilOffset;
m_map[i].nativeStartOffset = mapCopy[i].nativeOffset;
if (i < m_map.Count() - 1)
{
// We need to not use CALL_INSTRUCTION's IL start offset.
unsigned int j = i + 1;
while ((mapCopy[j].source & call_inst) == call_inst && j < m_map.Count()-1)
j++;
m_map[i].nativeEndOffset = mapCopy[j].nativeOffset;
}
m_map[i].source = mapCopy[i].source;
// need to cast the offsets to signed values first because we do actually use
// special negative offsets such as ICorDebugInfo::PROLOG
if ((m_map[i].source & call_inst) != call_inst)
lastILOffset = max((int)lastILOffset, (int)m_map[i].ilOffset);
}
if (m_map.Count() >= 1)
{
m_map[i - 1].nativeEndOffset = 0;
m_map[i - 1].source =
(ICorDebugInfo::SourceTypes)(m_map[i - 1].source | ICorDebugInfo::NATIVE_END_OFFSET_UNKNOWN);
}
// sort the map
MapSortILMap mapSorter(&m_map[0], m_map.Count());
mapSorter.Sort();
m_mapCount = m_map.Count();
while (m_mapCount > 0 && (m_map[m_mapCount-1].source & (call_inst)) == call_inst)
m_mapCount--;
SetLastILOffset(lastILOffset);
} // CopyAndSortSequencePoints
//-----------------------------------------------------------------------------
// member function implementations for MapSortILMap class to sort sequence points
// by IL offset
//-----------------------------------------------------------------------------
// secondary key comparison--if two IL offsets are the same,
// we determine order based on native offset
inline
int SequencePoints::MapSortILMap::CompareInternal(DebuggerILToNativeMap *first,
DebuggerILToNativeMap *second)
{
LIMITED_METHOD_CONTRACT;
if (first->nativeStartOffset == second->nativeStartOffset)
return 0;
else if (first->nativeStartOffset < second->nativeStartOffset)
return -1;
else
return 1;
}
//Comparison operator
inline
int SequencePoints::MapSortILMap::Compare(DebuggerILToNativeMap * first,
DebuggerILToNativeMap * second)
{
LIMITED_METHOD_CONTRACT;
const DWORD call_inst = (DWORD)ICorDebugInfo::CALL_INSTRUCTION;
//PROLOGs go first
if (first->ilOffset == (ULONG) ICorDebugInfo::PROLOG &&
second->ilOffset == (ULONG) ICorDebugInfo::PROLOG)
{
return CompareInternal(first, second);
}
else if (first->ilOffset == (ULONG) ICorDebugInfo::PROLOG)
{
return -1;
}
else if (second->ilOffset == (ULONG) ICorDebugInfo::PROLOG)
{
return 1;
}
// call_instruction goes at the very very end of the table.
else if ((first->source & call_inst) == call_inst
&& (second->source & call_inst) == call_inst)
{
return CompareInternal(first, second);
} else if ((first->source & call_inst) == call_inst)
{
return 1;
} else if ((second->source & call_inst) == call_inst)
{
return -1;
}
//NO_MAPPING go last
else if (first->ilOffset == (ULONG) ICorDebugInfo::NO_MAPPING &&
second->ilOffset == (ULONG) ICorDebugInfo::NO_MAPPING)
{
return CompareInternal(first, second);
}
else if (first->ilOffset == (ULONG) ICorDebugInfo::NO_MAPPING)
{
return 1;
}
else if (second->ilOffset == (ULONG) ICorDebugInfo::NO_MAPPING)
{
return -1;
}
//EPILOGs go next-to-last
else if (first->ilOffset == (ULONG) ICorDebugInfo::EPILOG &&
second->ilOffset == (ULONG) ICorDebugInfo::EPILOG)
{
return CompareInternal(first, second);
}
else if (first->ilOffset == (ULONG) ICorDebugInfo::EPILOG)
{
return 1;
}
else if (second->ilOffset == (ULONG) ICorDebugInfo::EPILOG)
{
return -1;
}
//normal offsets compared otherwise
else if (first->ilOffset < second->ilOffset)
{
return -1;
}
else if (first->ilOffset == second->ilOffset)
{
return CompareInternal(first, second);
}
else
{
return 1;
}
}
//-----------------------------------------------------------------------------
// NativeCodeFunctionData member function implementations
// (for getting native code regions)
//-----------------------------------------------------------------------------
inline
CodeBlobRegion & operator++(CodeBlobRegion & rs)
{
return rs = CodeBlobRegion(rs + 1);
}
// Convert the data in an instance of DebuggerIPCE_JITFUncData to an instance of NativeCodeFunctionData.
// We need to have this latter type to look up or create a new CordbNativeCode object, but the stack walker is
// using the former type to gather information.
// Arguments:
// Input:
// source - an initialized instance of DebuggerIPCE_JITFuncData containing the information to
// be copied into this instance of NativeCodeFunctionData
// @dbgtodo dlaw: Once CordbThread::RefreshStack is fully DAC-ized, we can change the data structure that it uses
// to have a member of type NativeCodeFunctionData which we can pass without copying. At that point,
// this method can disappear.
inline
NativeCodeFunctionData::NativeCodeFunctionData(DebuggerIPCE_JITFuncData * source)
{
// copy the code region information
m_rgCodeRegions[kHot].Init(CORDB_ADDRESS(source->nativeStartAddressPtr), (ULONG)source->nativeHotSize);
m_rgCodeRegions[kCold].Init(CORDB_ADDRESS(source->nativeStartAddressColdPtr), (ULONG)source->nativeColdSize);
// copy the other function information
isInstantiatedGeneric = source->isInstantiatedGeneric;
vmNativeCodeMethodDescToken = source->vmNativeCodeMethodDescToken;
encVersion = source->enCVersion;
}
// set all fields to default values (NULL, FALSE, or zero as appropriate)
inline
NativeCodeFunctionData::NativeCodeFunctionData()
{
Clear();
}
inline
void NativeCodeFunctionData::Clear()
{
isInstantiatedGeneric = FALSE;
encVersion = CorDB_DEFAULT_ENC_FUNCTION_VERSION;
for (CodeBlobRegion region = kHot; region < MAX_REGIONS; ++region)
{
m_rgCodeRegions[region].Clear();
}
}
//-----------------------------------------------------------------------------------
// ClassInfo member functions
//-----------------------------------------------------------------------------------
inline
ClassInfo::ClassInfo():
m_objectSize(0)
{}
// clear all fields
inline
void ClassInfo::Clear()
{
m_objectSize = 0;
m_fieldList.Dealloc();
}
inline
ClassInfo::~ClassInfo()
{
m_fieldList.Dealloc();
}
//-----------------------------------------------------------------------------------
// FieldData member functions
//-----------------------------------------------------------------------------------
#ifndef RIGHT_SIDE_COMPILE
// initialize various fields of an instance of FieldData from information retrieved from a FieldDesc
inline
void FieldData::Initialize(BOOL fIsStatic, BOOL fIsPrimitive, mdFieldDef mdToken)
{
ClearFields();
m_fFldIsStatic = (fIsStatic == TRUE);
m_fFldIsPrimitive = (fIsPrimitive == TRUE);
// This is what tells the right side the field is unavailable due to EnC.
m_fldMetadataToken = mdToken;
}
#endif
// clear various fields for a new instance of FieldData
inline
void FieldData::ClearFields()
{
m_fldSignatureCache = NULL;
m_fldSignatureCacheSize = 0;
m_fldInstanceOffset = 0;
m_pFldStaticAddress = NULL;
}
inline
BOOL FieldData::OkToGetOrSetInstanceOffset()
{
return (!m_fFldIsStatic && !m_fFldIsRVA && !m_fFldIsTLS &&
m_fFldStorageAvailable && (m_pFldStaticAddress == NULL));
}
// If this is an instance field, store its offset
inline
void FieldData::SetInstanceOffset(SIZE_T offset)
{
_ASSERTE(!m_fFldIsStatic);
_ASSERTE(!m_fFldIsRVA);
_ASSERTE(!m_fFldIsTLS);
_ASSERTE(m_fFldStorageAvailable);
_ASSERTE(m_pFldStaticAddress == NULL);
m_fldInstanceOffset = offset;
}
inline
BOOL FieldData::OkToGetOrSetStaticAddress()
{
return (m_fFldIsStatic && !m_fFldIsTLS &&
m_fFldStorageAvailable && (m_fldInstanceOffset == 0));
}
// If this is a "normal" static, store its absolute address
inline
void FieldData::SetStaticAddress(TADDR addr)
{
_ASSERTE(m_fFldIsStatic);
_ASSERTE(!m_fFldIsTLS);
_ASSERTE(m_fFldStorageAvailable);
_ASSERTE(m_fldInstanceOffset == 0);
m_pFldStaticAddress = TADDR(addr);
}
// Get the offset of a field
inline
SIZE_T FieldData::GetInstanceOffset()
{
_ASSERTE(!m_fFldIsStatic);
_ASSERTE(!m_fFldIsRVA);
_ASSERTE(!m_fFldIsTLS);
_ASSERTE(m_fFldStorageAvailable);
_ASSERTE(m_pFldStaticAddress == NULL);
return m_fldInstanceOffset;
}
// Get the static address for a field
inline
TADDR FieldData::GetStaticAddress()
{
_ASSERTE(m_fFldIsStatic);
_ASSERTE(!m_fFldIsTLS);
_ASSERTE(m_fFldStorageAvailable || (m_pFldStaticAddress == NULL));
_ASSERTE(m_fldInstanceOffset == 0);
return m_pFldStaticAddress;
}
//-----------------------------------------------------------------------------------
// EnCHangingFieldInfo member functions
//-----------------------------------------------------------------------------------
inline
void EnCHangingFieldInfo::Init(VMPTR_Object pObject,
SIZE_T offset,
mdFieldDef fieldToken,
CorElementType elementType,
mdTypeDef metadataToken,
VMPTR_DomainAssembly vmDomainAssembly)
{
m_vmObject = pObject;
m_offsetToVars = offset;
m_fldToken = fieldToken;
m_objectTypeData.elementType = elementType;
m_objectTypeData.metadataToken = metadataToken;
m_objectTypeData.vmDomainAssembly = vmDomainAssembly;
}
#endif // DACDBISTRUCTURES_INL_