blob: 27483d77e78a2f93f29f21a95c1a4d5b8c337890 (
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
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
.assembly extern mscorlib { }
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly 'bug'
{
// bool) = ( 01 00 00 01 00 00 )
.permission reqmin ['mscorlib']System.Security.Permissions.SecurityPermissionAttribute ( "SkipVerification" = true )
}
.module 'bug.exe'
// MVID: {90803FD0-8E18-44C9-A242-98463ADD450D}
.namespace JitTest
{
.class private auto ansi Test extends [mscorlib]System.Object
{
.method private hidebysig instance int32 DoStuff(method instance int32 *()) il managed
{
// Code size 1 (0x1)
.maxstack 8
ldarg.0
ldarg.1
tail. calli instance int32()
ret
} // end of method 'Test::DoStuff'
.method private hidebysig instance method instance int32 *() RetStuff() il managed
{
// Code size 1 (0x1)
.maxstack 8
ldftn instance int32 JitTest.Test::DummyMethod()
ret
} // end of method 'Test::DoStuff'
.method private hidebysig instance int32 DummyMethod() il managed
{
// Code size 1 (0x1)
.maxstack 8
ldarg.0
callvirt instance class [mscorlib]System.Type [mscorlib]System.Object::GetType()
callvirt instance class [mscorlib]System.String [mscorlib]System.Type::ToString()
call void [System.Console]System.Console::WriteLine(class [mscorlib]System.String)
ldc.i4.0
ret
} // end of method 'Test::DoStuff'
.method private hidebysig static int32
TestMain() il managed
{
.maxstack 6
.locals (int32 V_0, int32)
newobj instance void JitTest.Test::.ctor()
dup
dup
ldftn instance int32 JitTest.Test::DummyMethod()
ldftn instance int32 JitTest.Test::DoStuff(method instance int32 *())
calli instance int32 (method instance int32 *())
stloc.1
ldftn instance method instance int32 *() JitTest.Test::RetStuff()
calli instance method instance int32 *()()
tail. calli instance int32 ()
ret
} // end of method 'Test::TestMain'
.method private hidebysig static int32
Main() il managed
{
.entrypoint
.maxstack 6
ldftn int32 JitTest.Test::TestMain()
calli int32 ()
ldc.i4 0x64
add
ret
} // end of method 'Test::TestMain'
.method public hidebysig specialname rtspecialname
instance void .ctor() il 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 'Test::.ctor'
} // end of class 'Test'
} // end of namespace 'JitTest'
//*********** DISASSEMBLY COMPLETE ***********************
|