Merge pull request #5428 from kumpera/wasm-support-p2
[mono.git] / mono / tests / reload-at-bb-end.il
1 .assembly extern mscorlib
2 {
3   .ver 1:0:5000:0
4   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
5 }
6 .assembly 'out'
7 {
8   .hash algorithm 0x00008004
9   .ver  0:0:0:0
10 }
11 .module 'out' // GUID = {D45045F2-EC64-4624-8552-EB20DDE3767F}
12
13
14   .class private auto ansi sealed T
15         extends [mscorlib]System.ValueType
16   {
17     .field  public   int32 a
18     .field  public   int32 b
19
20     // method line 1
21     .method public hidebysig  specialname  rtspecialname
22            instance default void .ctor (int32 a, int32 b)  cil managed
23     {
24         // Method begins at RVA 0x20ec
25         // Code size 15 (0xf)
26         .maxstack 8
27         IL_0000:  ldarg.0
28         IL_0001:  ldarg.2
29         IL_0002:  stfld  int32 T::b
30         IL_0007:  ldarg.0
31         IL_0008:  ldarg.1
32         IL_0009:  stfld  int32 T::a
33         IL_000e:  ret
34     } // end of method T::instance default void .ctor (int32 a, int32 b)
35
36   } // end of class T
37
38   .class private auto ansi abstract M
39         extends [mscorlib]System.Object
40   {
41
42     // method line 2
43     .method private static  hidebysig
44            default void foo (valuetype T _N_u470, bool _N_u471)  cil managed
45     {
46         // Method begins at RVA 0x20fc
47         // Code size 1 (0x1)
48         .maxstack 8
49         IL_0000:  ret
50     } // end of method M::default void foo (valuetype T _N_u470, bool _N_u471)
51
52     // method line 3
53     .method private static  hidebysig
54            default void IsBetterType (object t1, object t2)  cil managed
55     {
56         // Method begins at RVA 0x2100
57         // Code size 42 (0x2a)
58         .maxstack 6
59         .locals init (
60                 valuetype T     V_0)
61         IL_0000:  ldc.i4.3
62         IL_0001:  ldc.i4.4
63         IL_0002:  newobj instance void valuetype T::.ctor(int32, int32)
64         IL_0007:  stloc.0
65         IL_0008:  ldarg.0
66         IL_0009:  ldarg.1
67         IL_000a:  call bool class M::_N_real_check750(object, object)
68         IL_000f:  pop
69         IL_0010:  ldloc.0
70         IL_0011:  ldarg.0
71         IL_0012:  ldarg.1
72         IL_0013:  call bool class M::_N_real_check750(object, object)
73         IL_0018:  brfalse IL_0023
74
75         IL_001d:  ldc.i4.1
76         IL_001e:  br IL_0024
77
78         IL_0023:  ldc.i4.1
79         IL_0024:  call void class M::foo(valuetype T, bool)
80         IL_0029:  ret
81     } // end of method M::default void IsBetterType (object t1, object t2)
82
83     // method line 4
84     .method private static  hidebysig
85            default void Main ()  cil managed
86     {
87         // Method begins at RVA 0x2138
88         .entrypoint
89         // Code size 16 (0x10)
90         .maxstack 8
91         IL_0000:  newobj instance void object::.ctor()
92         IL_0005:  newobj instance void object::.ctor()
93         IL_000a:  call void class M::IsBetterType(object, object)
94         IL_000f:  ret
95     } // end of method M::default void Main ()
96
97     // method line 5
98     .method private static  hidebysig
99            default bool _N_real_check750 (object t1, object t2)  cil managed
100     {
101         // Method begins at RVA 0x214c
102         // Code size 14 (0xe)
103         .maxstack 8
104         IL_0000:  ldarg.0
105         IL_0001:  call void class [mscorlib]System.Console::WriteLine(object)
106         IL_0006:  ldarg.1
107         IL_0007:  call void class [mscorlib]System.Console::WriteLine(object)
108         IL_000c:  ldc.i4.1
109         IL_000d:  ret
110     } // end of method M::default bool _N_real_check750 (object t1, object t2)
111
112   } // end of class M