File: load-missing.il

package info (click to toggle)
mono 4.6.2.7+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 778,148 kB
  • ctags: 914,052
  • sloc: cs: 5,779,509; xml: 2,773,713; ansic: 432,645; sh: 14,749; makefile: 12,361; perl: 2,488; python: 1,434; cpp: 849; asm: 531; sql: 95; sed: 16; php: 1
file content (737 lines) | stat: -rw-r--r-- 17,874 bytes parent folder | download | duplicates (2)
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
//
// load-missing.il: Helper class used by load-exceptions.cs
//

.assembly extern mscorlib
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
  .ver 2:0:0:0
}
.assembly extern t
{
  .ver 0:0:0:0
}
.assembly extern notFoundAssembly
{
  .ver 0:0:0:0
}

.assembly 'load-missing'
{
  .hash algorithm 0x00008004
  .ver 0:0:0:0
}
.custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 ) 
.imagebase 0x00400000
.file alignment 0x00000200
.subsystem 0x0003       // WINDOWS_CUI
.corflags 0x00000001    //  ILONLY
// Image base: 0x03310000

  .class auto ansi sealed public EmptyDelegate
         extends [mscorlib]System.MulticastDelegate
  {
    .method public hidebysig specialname rtspecialname 
            instance void  .ctor(object 'object',
                                 native int 'method') runtime managed
    {
    }

    .method public hidebysig newslot virtual 
            instance void  Invoke() runtime managed
    {
    }

    .method public hidebysig newslot virtual 
            instance class [mscorlib]System.IAsyncResult 
            BeginInvoke(class [mscorlib]System.AsyncCallback callback,
                        object 'object') runtime managed
    {
    }

    .method public hidebysig newslot virtual 
            instance void  EndInvoke(class [mscorlib]System.IAsyncResult result) runtime managed
    {
    }

  }

  .class auto ansi sealed public DelegateWithMissingArgument
         extends [mscorlib]System.MulticastDelegate
  {
    .method public hidebysig specialname rtspecialname 
            instance void  .ctor(object 'object',
                                 native int 'method') runtime managed
    {
    }

    .method public hidebysig newslot virtual 
            instance void  Invoke(class [t]Missing t) runtime managed
    {
    }

    .method public hidebysig newslot virtual 
            instance class [mscorlib]System.IAsyncResult 
            BeginInvoke(class [mscorlib]System.AsyncCallback callback,
                        object 'object') runtime managed
    {
    }

    .method public hidebysig newslot virtual 
            instance void  EndInvoke(class [mscorlib]System.IAsyncResult result) runtime managed
    {
    }

  }

.class public auto ansi beforefieldinit LoadMissing
       extends [mscorlib]System.Object
{

  .method public hidebysig static void  missing_class() cil managed
  {
   
    .maxstack  1
    .locals init (class [t]Missing.Foo1 V_0)
    IL_0000:  nop
    IL_0001:  newobj     instance void [t]Missing.Foo1::.ctor()
    IL_0006:  stloc.0
    IL_0007:  ret
  }

  .method public hidebysig static void  missing_method() cil managed
  {
   
    .maxstack  1
    .locals init (class [t]Missing.Foo2 V_0)
    IL_0000:  nop
    IL_0001:  newobj     instance void [t]Missing.Foo2::.ctor()
    IL_0006:  stloc.0
    IL_0007:  ldloc.0
    IL_0008:  callvirt   instance void [t]Missing.Foo2::missing()
    IL_000d:  nop
    IL_000e:  ret
  }

  .method public hidebysig static void  missing_ctor() cil managed
  {
   
    .maxstack  2
    .locals init (class [t]Missing.Foo2 V_0)
    IL_0000:  nop
    IL_0001:  ldc.i4.5
    IL_0002:  newobj     instance void [t]Missing.Foo2::.ctor(int32)
    IL_0007:  stloc.0
    IL_0008:  ret
  }

  .method public hidebysig static void  missing_call() cil managed
  {
   
    .maxstack  1
    .locals init (class [t]Missing.Foo2 V_0)
    IL_0000:  nop
    IL_0001:  newobj     instance void [t]Missing.Foo2::.ctor()
    IL_0006:  stloc.0
    IL_0007:  ldloc.0
    IL_0008:  callvirt   instance void [t]Missing.Foo2::missing()
    IL_000d:  nop
    IL_000e:  ret
  }

  .method public hidebysig static void  missing_jmp() cil managed
  {
   
    .maxstack  1
    .locals init (class [t]Missing.Foo2 V_0)

	jmp void [t]Missing.Foo2::static_missing ()
  }

  .method public hidebysig static void  missing_ldftn() cil managed
  {
   
    .maxstack  3
    .locals init (class [t]Missing.Foo2 V_0,
             class EmptyDelegate V_1)
    IL_0000:  nop
    IL_0001:  newobj     instance void [t]Missing.Foo2::.ctor()
    IL_0006:  stloc.0
    IL_0007:  ldloc.0
    IL_0008:  ldftn      instance void [t]Missing.Foo2::missing()
    IL_000e:  newobj     instance void EmptyDelegate::.ctor(object,
                                                            native int)
    IL_0013:  stloc.1
    IL_0014:  ret
  }

  .method public hidebysig static void  missing_callvirt() cil managed
  {
   
    .maxstack  1
    .locals init (class [t]Missing.Foo5 V_0)
    IL_0000:  nop
    IL_0001:  newobj     instance void [t]Missing.Foo5::.ctor()
    IL_0006:  stloc.0
    IL_0007:  ldloc.0
    IL_0008:  callvirt   instance void [t]Missing.Foo5::missing_virtual()
    IL_000d:  nop
    IL_000e:  ret
  }

  .method public hidebysig static object 
          missing_castclass_helper(object o) cil managed
  {
   
    .maxstack  1
    .locals init (object V_0)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  castclass  [t]Missing.Foo1
    IL_0007:  stloc.0
    IL_0008:  br.s       IL_000a

    IL_000a:  ldloc.0
    IL_000b:  ret
  }

  .method public hidebysig static void
          missing_castclass() cil managed
  {
   
    .maxstack  1
    .locals init (object V_0)

		ldnull
    	call       object LoadMissing::missing_castclass_helper(object)
		pop
		ret
  }

	.method public hidebysig static void
					missing_cpobj () cil managed
	{
		.maxstack 8
		.locals init (object v_0, object v_1)

		ldloca v_0
		ldloca v_1
		cpobj [t]Missing.Foo1
		ret
	}

	.method public hidebysig static void
					missing_initobj () cil managed
	{
		.maxstack 8
		.locals init (object v_0)

		ldloca v_0
		initobj [t]Missing.Foo1
		ret
	}

  .method public hidebysig static bool  missing_isinst_helper(object o) cil managed
  {
   
    .maxstack  2
    .locals init (bool V_0)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  isinst     [t]Missing.Foo1
    IL_0007:  ldnull
    IL_0008:  cgt.un
    IL_000a:  stloc.0
    IL_000b:  br.s       IL_000d

    IL_000d:  ldloc.0
    IL_000e:  ret
  }

  .method public hidebysig static void
          missing_isinst() cil managed
  {
   
    .maxstack  1
    .locals init (object V_0)

		ldnull
    	call       bool LoadMissing::missing_isinst_helper(object)
		pop
		ret
  }

  .method public hidebysig static void  missing_ldfld() cil managed
  {
   
    .maxstack  1
    .locals init (class [t]Missing.Foo4 V_0,
             int32 V_1)
    IL_0000:  nop
    IL_0001:  newobj     instance void [t]Missing.Foo4::.ctor()
    IL_0006:  stloc.0
    IL_0007:  ldloc.0
    IL_0008:  ldfld     int32 [t]Missing.Foo4::i
    IL_000d:  stloc.1
    IL_000e:  nop
    IL_000f:  nop
    IL_0013:  ret
  }

  .method public hidebysig static void  missing_ldflda() cil managed
  {
   
    .maxstack  1
    .locals init (class [t]Missing.Foo4 V_0,
             int32& pinned V_1)
    IL_0000:  nop
    IL_0001:  newobj     instance void [t]Missing.Foo4::.ctor()
    IL_0006:  stloc.0
    IL_0007:  ldloc.0
    IL_0008:  ldflda     int32 [t]Missing.Foo4::i
    IL_000d:  stloc.1
    IL_000e:  nop
    IL_000f:  nop
    IL_0010:  ldc.i4.0
    IL_0011:  conv.u
    IL_0012:  stloc.1
    IL_0013:  ret
  }

  .method public hidebysig static void  missing_ldsfld() cil managed
  {
   
    .maxstack  1
    .locals init (int32 V_0)
    IL_0000:  nop
    IL_0001:  ldsfld    int32 [t]Missing.Foo3::i
    IL_0006:  stloc.0
    IL_0007:  nop
    IL_0008:  nop
    IL_0009:  ldc.i4.0
    IL_000a:  conv.u
    IL_000b:  stloc.0
    IL_000c:  ret
  }

  .method public hidebysig static void  missing_ldsflda() cil managed
  {
   
    .maxstack  1
    .locals init (int32& pinned V_0)
    IL_0000:  nop
    IL_0001:  ldsflda    int32 [t]Missing.Foo3::i
    IL_0006:  stloc.0
    IL_0007:  nop
    IL_0008:  nop
    IL_0009:  ldc.i4.0
    IL_000a:  conv.u
    IL_000b:  stloc.0
    IL_000c:  ret
  }

  .method public hidebysig static void  missing_ldtoken_type() cil managed
  {
   
    .maxstack  8
    IL_0000:  nop
    IL_0001:  ldtoken    [t]Missing.Foo1
    IL_0006:  call       class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
    IL_000b:  call       void [mscorlib]System.Console::WriteLine(object)
    IL_0010:  nop
    IL_0011:  ret
  }

  .method public hidebysig static void  missing_ldtoken_method() cil managed
  {
   
    .maxstack  8
    IL_0000:  nop
    IL_0008:  ldtoken method instance void [t]Missing.Foo2::missing()
    IL_0010:  pop
    IL_0011:  ret
  }

  .method public hidebysig static void missing_assembly_in_fieldref () cil managed
  {
        .maxstack 8
        ldc.i4.0
        stsfld  int32 [t]X::a
        ret
  }

  .method public hidebysig static void missing_assembly_in_call () cil managed
  {
        .maxstack 8
        call void class [t]Gtk.Application::Init()
        ret
  }

  .method public hidebysig static void missing_assembly_in_newobj () cil managed
  {
        .maxstack 8
	newobj instance void class [mscorlib]System.Dingus::.ctor()
	pop
	ret
  }

  .method public hidebysig static void missing_external_type_reference_on_parameter() cil managed
  {
    .maxstack 8
    ldstr "Hello"
    call void class [mscorlib]System.String::Trim(class [mscorlib]MissingType)
    ret
  }

  .method public hidebysig static void  missing_ldtoken_field() cil managed
  {
   
    .maxstack  8
    IL_0000:  nop
    IL_0008:  ldtoken field int32 [t]Missing.Foo4::i
    IL_0010:  pop
    IL_0011:  ret
  }

  .method public hidebysig static void  missing_ldvirtftn() cil managed
  {
   
    .maxstack  3
    .locals init (class [t]Missing.Foo5 V_0,
             class EmptyDelegate V_1)
    IL_0000:  nop
    IL_0001:  newobj     instance void [t]Missing.Foo5::.ctor()
    IL_0006:  stloc.0
    IL_0007:  ldloc.0
    IL_0008:  dup
    IL_0009:  ldvirtftn  instance void [t]Missing.Foo5::missing_virtual()
    IL_000f:  newobj     instance void EmptyDelegate::.ctor(object,
                                                            native int)
    IL_0014:  stloc.1
    IL_0015:  ret
  }

  .method public hidebysig static object missing_newarr_helper() cil managed
  {
   
    .maxstack  1
    .locals init (object V_0)
    IL_0000:  nop
    IL_0001:  ldc.i4.s   10
    IL_0003:  newarr     [t]Missing.Foo1
    IL_0008:  stloc.0
    IL_0009:  br.s       IL_000b

    IL_000b:  ldloc.0
    IL_000c:  ret
  }

  .method public hidebysig static void  missing_newarr() cil managed
  {
   
    .maxstack  8
    IL_0000:  nop
    IL_0001:  call       object LoadMissing::missing_newarr_helper()
    IL_0006:  pop
    IL_0007:  ret
  }

  .method public hidebysig static void  missing_newobj() cil managed
  {
   
    .maxstack  2
    .locals init (class [t]Missing.Foo2 V_0)
    IL_0000:  nop
    IL_0001:  ldc.i4.5
    IL_0002:  newobj     instance void [t]Missing.Foo2::.ctor(int32)
    IL_0007:  stloc.0
    IL_0008:  ret
  }

  .method public hidebysig static void  missing_refanyval() cil managed
  {
   
    .maxstack  2
    .locals init (int32 v_0)

		ldloca v_0
		mkrefany int32
		refanyval [t]Missing.Foo1
		pop
		ret
	}

  .method public hidebysig static void  missing_sizeof() cil managed
  {
   
    .maxstack  8
    IL_0000:  nop
    IL_0001:  sizeof    [t]Missing.Foo1
    IL_0010:  pop
    IL_0011:  ret
  }

  .method public hidebysig static void  missing_stfld() cil managed
  {
   
    .maxstack  2
    .locals init (class [t]Missing.Foo4 V_0)
    IL_0000:  nop
    IL_0001:  newobj     instance void [t]Missing.Foo4::.ctor()
    IL_0006:  stloc.0
    IL_0007:  ldloc.0
    IL_0008:  ldc.i4.5
    IL_0009:  stfld      int32 [t]Missing.Foo4::i
    IL_000e:  ret
  }

  .method public hidebysig static void  missing_stsfld() cil managed
  {
   
    .maxstack  8
    IL_0000:  nop
    IL_0001:  ldc.i4.5
    IL_0002:  stsfld     int32 [t]Missing.Foo3::i
    IL_0007:  ret
  }

  .method public hidebysig static void missing_unbox () cil managed
  {
	  .maxstack 8
	
	  ldnull
      unbox [t]Missing.Foo6
      pop
      ret
  }	

  .method public hidebysig static void missing_unbox_any () cil managed
  {
	  .maxstack 8
	
	  	ldnull
      unbox.any [t]Missing.Foo6
      pop
      ret
  }	

	.method public hidebysig static void missing_local () cil managed
	{
		.maxstack 8
		.locals init (class [t]Missing.Foo1 v_0)

		ret
	}	

	.method public static void delegate_target () cil managed
	{
		ret
	}

	.method public hidebysig static void missing_delegate_ctor_argument () cil managed	   
	{
	    .maxstack  3
		.locals init (class [t]Missing.Foo2 V_0,
			          class EmptyDelegate V_1)
    IL_0000:  nop
    IL_0001:  newobj     instance void LoadMissing::.ctor()
    IL_0006:  stloc.0
    IL_0007:  ldloc.0
    IL_0008:  ldftn      void LoadMissing::delegate_target()
    IL_000e:  newobj     instance void DelegateWithMissingArgument::.ctor(object,
                                                                          native int)
    IL_0013:  stloc.1
    IL_0014:  ret
	}

  .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
  }

}

.class public auto ansi beforefieldinit BrokenClass
       extends [t]Missing.Foo1
{
}

.class public auto ansi CCtorClass
        extends [mscorlib]System.Object     
  {                                         

    // method line 48
    .method public hidebysig  specialname  rtspecialname 
           instance default void '.ctor' ()  cil managed 
    {                                                    
        .maxstack 8                                      
        IL_0000:  ldarg.0                                
        IL_0001:  call instance void object::'.ctor'()   
        IL_0006:  ret                                    
    } // end of method CCtorClass::.ctor                 

    // method line 49
    .method private static  specialname  rtspecialname 
           default void '.cctor' ()  cil managed       
    {                                                  
    IL_0000:  nop
    IL_0001:  newobj     instance void [t]Missing.Foo2::.ctor()
    IL_0006:  stloc.0
    IL_0007:  ldloc.0
    IL_0008:  callvirt   instance void [t]Missing.Foo2::missing()
    IL_000d:  nop
    IL_000e:  ret
    } // end of method CCtorClass::.cctor                                    

    // method line 50
    .method public static  hidebysig 
           default void foo ()  cil managed 
    {                                       
        .maxstack 8                         
        IL_0000:  ret                       
    } // end of method CCtorClass::foo      

  } // end of class CCtorClass

.class interface public auto ansi abstract TestIface
{
	.method public virtual  hidebysig  newslot abstract instance default int32 foo ()  cil managed  {}
}

.class public auto ansi beforefieldinit BadMethodOverride1
{
	.method public virtual newslot default int32 foo ()
	{
		.override class TestIface::foo
		ldc.i4.0
		ret
	}

	.method public hidebysig  specialname  rtspecialname  instance default void '.ctor' ()  cil managed 
    {
		ldarg.0                                
		call instance void object::'.ctor'()   
		ret                                    
	}
}

.class public auto ansi beforefieldinit RandomBaseClass
{
	.method public virtual newslot default int32 foo ()
	{
		ldc.i4.0
		ret
	}

	.method public static int32 foo2 ()
	{
		ldc.i4.0
		ret
	}

	.method public hidebysig  specialname  rtspecialname  instance default void '.ctor' ()  cil managed 
    {
		ldarg.0                                
		call instance void object::'.ctor'()   
		ret                                    
	}
}

.class public auto ansi beforefieldinit BadMethodOverride2
{
	.method public virtual newslot default int32 foo ()
	{
		.override class RandomBaseClass::foo
		ldc.i4.0
		ret
	}

	.method public hidebysig  specialname  rtspecialname  instance default void '.ctor' ()  cil managed 
    {
		ldarg.0                                
		call instance void object::'.ctor'()   
		ret                                    
	}
}

.class public auto ansi beforefieldinit BadMethodOverride3 implements TestIface
{
	.method public default int32 foo ()
	{
		.override class TestIface::foo
		ldc.i4.0
		ret
	}

	.method public hidebysig  specialname  rtspecialname  instance default void '.ctor' ()  cil managed 
    {
		ldarg.0                                
		call instance void object::'.ctor'()   
		ret                                    
	}
}

.class public auto ansi beforefieldinit BadMethodOverride4 extends RandomBaseClass
{
	.method public virtual default int32 foo2 ()
	{
		.override class RandomBaseClass::foo2
		ldc.i4.0
		ret
	}

	.method public hidebysig  specialname  rtspecialname  instance default void '.ctor' ()  cil managed 
    {
		ldarg.0                                
		call instance void RandomBaseClass::'.ctor'()   
		ret                                    
	}
}

.class public auto ansi beforefieldinit BadOverridesDriver
{
	.method public static void bad_override1 ()
	{
		newobj instance void BadMethodOverride1::.ctor()
		pop
		ret
	}

	.method public static void bad_override2 ()
	{
		newobj instance void BadMethodOverride2::.ctor()
		pop
		ret
	}

	.method public static void bad_override3 ()
	{
		newobj instance void BadMethodOverride3::.ctor()
		pop
		ret
	}

	.method public static void bad_override4 ()
	{
		newobj instance void BadMethodOverride4::.ctor()
		pop
		ret
	}
}

.class public auto ansi beforefieldinit FieldWithMissingType
{
	.field  public class [t]Missing BrokenField
    .field  public static int32 WorkingField
}

.class public auto ansi beforefieldinit FieldWithMissingCustomAttribute
{
    .field	public object f
    .custom	instance void class [notFoundAssembly]SomeAttribute::'.ctor'() = (01 00 00 00 ) // ....
}