internal static EnterFinallyInstruction Create(int labelIndex)
 {
     if (labelIndex < CacheSize)
     {
         return(s_cache[labelIndex] ?? (s_cache[labelIndex] = new EnterFinallyInstruction(labelIndex)));
     }
     return(new EnterFinallyInstruction(labelIndex));
 }
Ejemplo n.º 2
0
 internal static EnterFinallyInstruction Create(int labelIndex)
 {
     if (labelIndex >= 32)
     {
         return new EnterFinallyInstruction(labelIndex);
     }
     else
     {
         EnterFinallyInstruction cache = EnterFinallyInstruction.Cache[labelIndex];
         EnterFinallyInstruction enterFinallyInstruction = cache;
         if (cache == null)
         {
             EnterFinallyInstruction enterFinallyInstruction1 = new EnterFinallyInstruction(labelIndex);
             EnterFinallyInstruction enterFinallyInstruction2 = enterFinallyInstruction1;
             EnterFinallyInstruction.Cache[labelIndex] = enterFinallyInstruction1;
             enterFinallyInstruction = enterFinallyInstruction2;
         }
         return enterFinallyInstruction;
     }
 }
Ejemplo n.º 3
0
 internal static EnterFinallyInstruction Create(int labelIndex)
 {
     if (labelIndex >= 32)
     {
         return(new EnterFinallyInstruction(labelIndex));
     }
     else
     {
         EnterFinallyInstruction cache = EnterFinallyInstruction.Cache[labelIndex];
         EnterFinallyInstruction enterFinallyInstruction = cache;
         if (cache == null)
         {
             EnterFinallyInstruction enterFinallyInstruction1 = new EnterFinallyInstruction(labelIndex);
             EnterFinallyInstruction enterFinallyInstruction2 = enterFinallyInstruction1;
             EnterFinallyInstruction.Cache[labelIndex] = enterFinallyInstruction1;
             enterFinallyInstruction = enterFinallyInstruction2;
         }
         return(enterFinallyInstruction);
     }
 }
Ejemplo n.º 4
0
 public void EmitEnterFinally(BranchLabel finallyStartLabel)
 {
     Emit(EnterFinallyInstruction.Create(EnsureLabelIndex(finallyStartLabel)));
 }
Ejemplo n.º 5
0
 internal static EnterFinallyInstruction Create(int labelIndex)
 {
     if (labelIndex < CacheSize)
     {
         return s_cache[labelIndex] ?? (s_cache[labelIndex] = new EnterFinallyInstruction(labelIndex));
     }
     return new EnterFinallyInstruction(labelIndex);
 }