File: target.il

package info (click to toggle)
mono.reflection 1.0%2Bgit20110407%2Bd2343843-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 172 kB
  • ctags: 166
  • sloc: cs: 1,094; makefile: 12
file content (200 lines) | stat: -rwxr-xr-x 3,282 bytes parent folder | download | duplicates (3)
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
.assembly extern mscorlib
{
	.publickeytoken = (B7 7A 5C 56 19 34 E0 89)
	.ver 2:0:0:0
}

.assembly target {}

.module target.dll

.class private Test extends [mscorlib]System.Object {

	.method public specialname rtspecialname instance void .ctor () cil managed
	{
		ldarg.0
		call		instance void [mscorlib]System.Object::.ctor ()
		ret
	}

	.field private string str

	.method public instance string ReadField () cil managed
	{
		ldarg.0
		ldfld		string Test::str
		ret
	}

	.method public instance void WriteField (string val) cil managed
	{
		ldarg.0
		ldarg		val
		stfld		string Test::str
		ret
	}

	.method public instance class [mscorlib]System.Type TypeOfString () cil managed
	{
		ldtoken    [mscorlib]System.String
		call       class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle (valuetype [mscorlib]System.RuntimeTypeHandle)
		ret
	}

	.method public instance int32 ShortBranch (int32 i) cil managed
	{
		ldarg.1
		ldc.i4.0
		ble.s		negative

		ldarg.1
		ret

	negative:
		ldc.i4.m1
		ret
	}

	.method public instance int32 Branch (int32 i) cil managed
	{
		ldarg.1
		ldc.i4.0
		ble			negative

		ldarg.1
		ret

	negative:
		ldc.i4.m1
		ret
	}

	.method public instance int32 Switch (int32 i) cil managed
	{
		ldarg.1
		switch (zero, one, two, other)
		br.s		other

	zero:
		ldc.i4.0
		ret

	one:
		ldc.i4.1
		ret

	two:
		ldc.i4.2
		ret

	other:
		ldc.i4.m1
		ret
	}

	// optimized instance property

	.field private bool opan

	.property instance bool OPan () {
		.get instance bool Test::get_OPan ()
		.set instance void Test::set_OPan (bool)
	}

	.method public hidebysig specialname instance bool get_OPan () cil managed
	{
		ldarg.0
		ldfld		bool Test::opan
		ret
	}

	.method public hidebysig specialname instance void set_OPan (bool val) cil managed
	{
		ldarg.0
		ldarg.1
		stfld		bool Test::opan
		ret
	}

	// optimized static property

	.field private static bool sopan

	.property bool SOPan () {
		.get bool Test::get_SOPan ()
		.set void Test::set_SOPan (bool)
	}

	.method public hidebysig specialname static bool get_SOPan () cil managed
	{
		ldsfld		bool Test::sopan
		ret
	}

	.method public hidebysig specialname static void set_SOPan (bool val) cil managed
	{
		ldarg.0
		stsfld		bool Test::sopan
		ret
	}

	// unoptimized instance property

	.field private bool upan

	.property instance bool UPan () {
		.get instance bool Test::get_UPan ()
		.set instance void Test::set_UPan (bool)
	}

	.method public hidebysig specialname instance bool get_UPan () cil managed
	{
		.locals init (bool b)
		nop
		ldarg.0
		ldfld		bool Test::upan
		stloc.0
		br.s		retval
	retval:
		ldloc.0
		ret
	}

	.method public hidebysig specialname instance void set_UPan (bool val) cil managed
	 {
		nop
		ldarg.0
		ldarg.1
		stfld		bool Test::upan
		ret
	}

	// unoptimized static property

	.field private static bool supan

	.property bool SUPan () {
		.get bool Test::get_SUPan ()
		.set void Test::set_SUPan (bool)
	}

	.method public hidebysig specialname static bool get_SUPan () cil managed
	{
		.locals init (bool val)
		nop
		ldsfld		bool Test::supan
		stloc.0
		br.s		retval
	retval:
		ldloc.0
		ret
	}

	.method public hidebysig specialname static void set_SUPan (bool val) cil managed
	{
		nop
		ldarg.0
		stsfld		bool Test::supan
		ret
	}
}