|
11 | 11 | .class a extends [mscorlib]System.Object
|
12 | 12 | {
|
13 | 13 | .field static class ctest S_1
|
14 |
| -.method public static int32 byrefsubbyref(class ctest& V_1, class ctest& V_2) |
| 14 | +.method public static native int byrefsubbyref(class ctest& V_1, class ctest& V_2) |
15 | 15 | {
|
16 | 16 | // op1: byref, op2: byref
|
17 | 17 | ldarg 0
|
18 | 18 | ldarg 1
|
19 | 19 | sub
|
20 | 20 | ret
|
21 | 21 | }
|
22 |
| -.method public static int32 byrefsubi4(class ctest& V_1, int32 V_2) |
| 22 | +.method public static native int byrefsubi4(class ctest& V_1, int32 V_2) |
23 | 23 | {
|
24 | 24 | // op1: byref, op2: int32
|
25 | 25 | ldarg 0
|
26 | 26 | ldarg 1
|
27 | 27 | sub
|
28 | 28 | ret
|
29 | 29 | }
|
30 |
| -.method public static int32 i4subbyref(int32, class ctest& V_2) |
| 30 | +.method public static native int i4subbyref(int32, class ctest& V_2) |
31 | 31 | {
|
32 | 32 | // op1: int32, op2: byref
|
33 | 33 | ldarg 0
|
|
41 | 41 | .maxstack 2
|
42 | 42 | .locals init (class ctest V_1,
|
43 | 43 | class ctest V_2,
|
44 |
| - int32 V_3) |
| 44 | + native int V_3) |
45 | 45 | IL_0004: newobj instance void ctest::.ctor()
|
46 | 46 | IL_0009: stloc.0
|
47 | 47 | IL_000a: newobj instance void ctest::.ctor()
|
|
53 | 53 | IL_0010:
|
54 | 54 | ldloca V_2
|
55 | 55 | ldloca V_1
|
56 |
| - call int32 a::byrefsubbyref(class ctest&, class ctest&) |
| 56 | + call native int a::byrefsubbyref(class ctest&, class ctest&) |
57 | 57 | dup
|
58 | 58 | stloc.2
|
59 | 59 | call void [System.Console]System.Console::WriteLine(int32)
|
60 | 60 |
|
61 | 61 | // op1: byref, op2: int
|
62 | 62 | ldloca V_2
|
63 | 63 | ldc.i4 1
|
64 |
| - call int32 a::byrefsubi4(class ctest&, int32) |
| 64 | + call native int a::byrefsubi4(class ctest&, int32) |
65 | 65 | call void [System.Console]System.Console::WriteLine(int32)
|
66 | 66 |
|
67 | 67 | // op1: int, op2: byref
|
68 | 68 | ldc.i4 1
|
69 | 69 | ldloca V_1
|
70 |
| - call int32 a::i4subbyref(int32, class ctest&) |
| 70 | + call native int a::i4subbyref(int32, class ctest&) |
71 | 71 | call void [System.Console]System.Console::WriteLine(int32)
|
72 | 72 |
|
73 | 73 | // op1: byref, op2: byref
|
74 | 74 | newobj instance void ctest::.ctor()
|
75 | 75 | stloc.0
|
76 | 76 | ldloca V_1
|
77 | 77 | ldsflda class ctest a::S_1
|
78 |
| - call int32 a::byrefsubbyref(class ctest&, class ctest&) |
| 78 | + call native int a::byrefsubbyref(class ctest&, class ctest&) |
79 | 79 | newobj instance void ctest::.ctor()
|
80 | 80 | stloc.0
|
81 | 81 | ldloca V_1
|
82 |
| - call int32 a::byrefsubbyref(class ctest&, class ctest&) |
| 82 | + call native int a::byrefsubbyref(class ctest&, class ctest&) |
83 | 83 | ldsflda class ctest a::S_1
|
84 |
| - call int32 a::byrefsubbyref(class ctest&, class ctest&) |
| 84 | + call native int a::byrefsubbyref(class ctest&, class ctest&) |
85 | 85 | newobj instance void ctest::.ctor()
|
86 | 86 | stsfld class ctest a::S_1
|
87 | 87 | ldsflda class ctest a::S_1
|
88 |
| - call int32 a::byrefsubbyref(class ctest&, class ctest&) |
| 88 | + call native int a::byrefsubbyref(class ctest&, class ctest&) |
89 | 89 | ldsflda class ctest a::S_1
|
90 |
| - call int32 a::byrefsubbyref(class ctest&, class ctest&) |
| 90 | + call native int a::byrefsubbyref(class ctest&, class ctest&) |
91 | 91 | newobj instance void ctest::.ctor()
|
92 | 92 | stloc.0
|
93 | 93 | ldloca V_1
|
94 |
| - call int32 a::byrefsubbyref(class ctest&, class ctest&) |
| 94 | + call native int a::byrefsubbyref(class ctest&, class ctest&) |
95 | 95 | ldsflda class ctest a::S_1
|
96 |
| - call int32 a::byrefsubbyref(class ctest&, class ctest&) |
| 96 | + call native int a::byrefsubbyref(class ctest&, class ctest&) |
97 | 97 | newobj instance void ctest::.ctor()
|
98 | 98 | stloc.0
|
99 | 99 | ldloca V_1
|
100 |
| - call int32 a::byrefsubbyref(class ctest&, class ctest&) |
| 100 | + call native int a::byrefsubbyref(class ctest&, class ctest&) |
101 | 101 | ldsflda class ctest a::S_1
|
102 |
| - call int32 a::byrefsubbyref(class ctest&, class ctest&) |
| 102 | + call native int a::byrefsubbyref(class ctest&, class ctest&) |
103 | 103 | newobj instance void ctest::.ctor()
|
104 | 104 | stloc.0
|
105 | 105 | ldloca V_1
|
106 |
| - call int32 a::byrefsubbyref(class ctest&, class ctest&) |
| 106 | + call native int a::byrefsubbyref(class ctest&, class ctest&) |
107 | 107 | call void [System.Console]System.Console::WriteLine(int32)
|
108 | 108 |
|
109 | 109 | ldc.i4 100
|
|
0 commit comments