Exemple #1
0
 public static void NewArray(IMethod method, AbcCode code)
 {
     if (method.Parameters.Count == 1)
     {
         //size is onto the stack
         code.Getlex(AvmTypeCode.Array);
         code.Swap();
         code.Construct(1);
         code.CoerceArray();
         return;
     }
     code.Add(InstructionCode.Newarray, 0);
 }