summaryrefslogtreecommitdiff
path: root/tests/src/readytorun/tests/fieldgetter.il
blob: c2eff200afd8624cd024e8844cdd720008922971 (plain)
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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

.assembly extern System.Console { }
.assembly extern mscorlib { }
.assembly extern test { }

.assembly fieldgetter { }
.module fieldgetter.dll

//==========================================================================================

.class public auto ansi beforefieldinit Gen`1<T>
       extends [mscorlib]System.Object
{
  .field public int32 m_Field1
  .field public string m_Field2
  .field public !T m_Field3
  .field public static class [mscorlib]System.Collections.Generic.List`1<!T> m_Field4
  .field public static valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<!T,int32> m_Field5
  
  .method public hidebysig specialname rtspecialname instance void  .ctor() cil managed
  {
    .maxstack  8
    IL_0000:  ldarg.0
    IL_0001:  call       instance void [mscorlib]System.Object::.ctor()
    IL_0006:  ret
  } // end of method Gen`1::.ctor
} // end of class Gen`1

.class interface public abstract auto ansi IFieldGetter
{
  .method public hidebysig newslot abstract virtual 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenT_Field1() cil managed
  {
  } // end of method IFieldGetter::GetGenT_Field1

  .method public hidebysig newslot abstract virtual 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenT_Field2() cil managed
  {
  } // end of method IFieldGetter::GetGenT_Field2

  .method public hidebysig newslot abstract virtual 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenT_Field3() cil managed
  {
  } // end of method IFieldGetter::GetGenT_Field3

  .method public hidebysig newslot abstract virtual 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenT_Field4() cil managed
  {
  } // end of method IFieldGetter::GetGenT_Field4

  .method public hidebysig newslot abstract virtual 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenT_Field5() cil managed
  {
  } // end of method IFieldGetter::GetGenT_Field5

  .method public hidebysig newslot abstract virtual 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenDllT_Field1() cil managed
  {
  } // end of method IFieldGetter::GetGenDllT_Field1

  .method public hidebysig newslot abstract virtual 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenDllT_Field2() cil managed
  {
  } // end of method IFieldGetter::GetGenDllT_Field2

  .method public hidebysig newslot abstract virtual 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenDllT_Field3() cil managed
  {
  } // end of method IFieldGetter::GetGenDllT_Field3

  .method public hidebysig newslot abstract virtual 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenDllT_Field4() cil managed
  {
  } // end of method IFieldGetter::GetGenDllT_Field4

  .method public hidebysig newslot abstract virtual 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenDllT_Field5() cil managed
  {
  } // end of method IFieldGetter::GetGenDllT_Field5

} // end of class IFieldGetter

.class public auto ansi beforefieldinit FieldGetter`1<T>
       extends [mscorlib]System.Object
       implements IFieldGetter
{
  .method public hidebysig newslot virtual final 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenT_Field1() cil managed
  {
    ldtoken field int32 class Gen`1<!0>::m_Field1
    ldtoken class Gen`1<!0>
	call class [mscorlib]System.Reflection.FieldInfo [mscorlib]System.Reflection.FieldInfo::GetFieldFromHandle(valuetype [mscorlib]System.RuntimeFieldHandle, valuetype [mscorlib]System.RuntimeTypeHandle)
    ret
  } // end of method FieldGetter`1::GetGenT_Field1

  .method public hidebysig newslot virtual final 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenT_Field2() cil managed
  {
    ldtoken field string class Gen`1<!0>::m_Field2
    ldtoken class Gen`1<!0>
	call class [mscorlib]System.Reflection.FieldInfo [mscorlib]System.Reflection.FieldInfo::GetFieldFromHandle(valuetype [mscorlib]System.RuntimeFieldHandle, valuetype [mscorlib]System.RuntimeTypeHandle)
    ret
  } // end of method FieldGetter`1::GetGenT_Field2

  .method public hidebysig newslot virtual final 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenT_Field3() cil managed
  {
    ldtoken field !0 class Gen`1<!0>::m_Field3
    ldtoken class Gen`1<!0>
	call class [mscorlib]System.Reflection.FieldInfo [mscorlib]System.Reflection.FieldInfo::GetFieldFromHandle(valuetype [mscorlib]System.RuntimeFieldHandle, valuetype [mscorlib]System.RuntimeTypeHandle)
    ret
  } // end of method FieldGetter`1::GetGenT_Field3

  .method public hidebysig newslot virtual final 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenT_Field4() cil managed
  {
    ldtoken field class [mscorlib]System.Collections.Generic.List`1<!0> class Gen`1<!0>::m_Field4
    ldtoken class Gen`1<!0>
	call class [mscorlib]System.Reflection.FieldInfo [mscorlib]System.Reflection.FieldInfo::GetFieldFromHandle(valuetype [mscorlib]System.RuntimeFieldHandle, valuetype [mscorlib]System.RuntimeTypeHandle)
    ret
  } // end of method FieldGetter`1::GetGenT_Field4

  .method public hidebysig newslot virtual final 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenT_Field5() cil managed
  {
    ldtoken field valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<!0,int32> class Gen`1<!0>::m_Field5
    ldtoken class Gen`1<!0>
	call class [mscorlib]System.Reflection.FieldInfo [mscorlib]System.Reflection.FieldInfo::GetFieldFromHandle(valuetype [mscorlib]System.RuntimeFieldHandle, valuetype [mscorlib]System.RuntimeTypeHandle)
    ret
  } // end of method FieldGetter`1::GetGenT_Field5
  
  
  
  

  .method public hidebysig newslot virtual final 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenDllT_Field1() cil managed
  {
    ldtoken field string class [test]MyGeneric`2<!0,!0>::m_Field1
    ldtoken class [test]MyGeneric`2<!0,!0>
	call class [mscorlib]System.Reflection.FieldInfo [mscorlib]System.Reflection.FieldInfo::GetFieldFromHandle(valuetype [mscorlib]System.RuntimeFieldHandle, valuetype [mscorlib]System.RuntimeTypeHandle)
    ret
  } // end of method FieldGetter`1::GetGenDllT_Field1

  .method public hidebysig newslot virtual final 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenDllT_Field2() cil managed
  {
    ldtoken field !0 class [test]MyGeneric`2<!0,!0>::m_Field2
    ldtoken class [test]MyGeneric`2<!0,!0>
	call class [mscorlib]System.Reflection.FieldInfo [mscorlib]System.Reflection.FieldInfo::GetFieldFromHandle(valuetype [mscorlib]System.RuntimeFieldHandle, valuetype [mscorlib]System.RuntimeTypeHandle)
    ret
  } // end of method FieldGetter`1::GetGenDllT_Field2

  .method public hidebysig newslot virtual final 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenDllT_Field3() cil managed
  {
    ldtoken field class [mscorlib]System.Collections.Generic.List`1<!0> class [test]MyGeneric`2<!0,!0>::m_Field3
    ldtoken class [test]MyGeneric`2<!0,!0>
	call class [mscorlib]System.Reflection.FieldInfo [mscorlib]System.Reflection.FieldInfo::GetFieldFromHandle(valuetype [mscorlib]System.RuntimeFieldHandle, valuetype [mscorlib]System.RuntimeTypeHandle)
    ret
  } // end of method FieldGetter`1::GetGenDllT_Field3

  .method public hidebysig newslot virtual final 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenDllT_Field4() cil managed
  {
    ldtoken field valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<!0,int32> class [test]MyGeneric`2<!0,!0>::m_Field4
    ldtoken class [test]MyGeneric`2<!0,!0>
	call class [mscorlib]System.Reflection.FieldInfo [mscorlib]System.Reflection.FieldInfo::GetFieldFromHandle(valuetype [mscorlib]System.RuntimeFieldHandle, valuetype [mscorlib]System.RuntimeTypeHandle)
    ret
  } // end of method FieldGetter`1::GetGenDllT_Field4

  .method public hidebysig newslot virtual final 
          instance class [mscorlib]System.Reflection.FieldInfo 
          GetGenDllT_Field5() cil managed
  {
    ldtoken field int32 class [test]MyGeneric`2<!0,!0>::m_Field5
    ldtoken class [test]MyGeneric`2<!0,!0>
	call class [mscorlib]System.Reflection.FieldInfo [mscorlib]System.Reflection.FieldInfo::GetFieldFromHandle(valuetype [mscorlib]System.RuntimeFieldHandle, valuetype [mscorlib]System.RuntimeTypeHandle)
    ret
  } // end of method FieldGetter`1::GetGenDllT_Field5

  .method public hidebysig specialname rtspecialname 
          instance void  .ctor() cil managed
  {
    // Code size       7 (0x7)
    .maxstack  8
    IL_0000:  ldarg.0
    IL_0001:  call       instance void [mscorlib]System.Object::.ctor()
    IL_0006:  ret
  } // end of method FieldGetter`1::.ctor

} // end of class FieldGetter`1