Пример #1
0
	static void Fill (int cycles) {
		object[] root = new object [13];
		object[] current = root;
		for (int i = 0; i < cycles; ++i) {
			current [0] = new object [13];
			current [1] = new int [6];
			current [2] = new int [2,3];
			current [3] = new string (FOO);
			current [4] = new SmallBitMap ();
			current [5] = new LargeBitMap ();
			current [6] = new ComplexBitMap ();
			current [7] = new PtrFree ();
			current [8] = new SmallMixed [3];
			current [9] = new LargeMixed [3];

			if ((i % 50000) == 0)
				current [10] = new HugePtrFree ();
			if ((i %  10000) == 0)
				current [11] = new LargeStruct2 [1];

			/* Test for 64 bit bitmap descriptors (#14834) */
			current [12] = new Non32bitBitmap () { o = new object (), i32 = 1, i33 = 1, i34 = 1, i35 = 1, o2 = new object () };
	
			current = (object[])current [0];
		}
	}
Пример #2
0
    static void Fill(int cycles)
    {
        object[] root    = new object [12];
        object[] current = root;
        for (int i = 0; i < cycles; ++i)
        {
            current [0] = new object [12];
            current [1] = new int [6];
            current [2] = new int [2, 3];
            current [3] = new string (FOO);
            current [4] = new SmallBitMap();
            current [5] = new LargeBitMap();
            current [6] = new ComplexBitMap();
            current [7] = new PtrFree();
            current [8] = new SmallMixed [3];
            current [9] = new LargeMixed [3];

            if ((i % 50000) == 0)
            {
                current [10] = new HugePtrFree();
            }
            if ((i % 10000) == 0)
            {
                current [11] = new LargeStruct2 [1];
            }

            current = (object[])current [0];
        }
    }
Пример #3
0
    static void Fill(int cycles)
    {
        object[] root    = new object [13];
        object[] current = root;
        for (int i = 0; i < cycles; ++i)
        {
            current [0] = new object [13];
            current [1] = new int [6];
            current [2] = new int [2, 3];
            current [3] = new string (FOO);
            current [4] = new SmallBitMap();
            current [5] = new LargeBitMap();
            current [6] = new ComplexBitMap();
            current [7] = new PtrFree();
            current [8] = new SmallMixed [3];
            current [9] = new LargeMixed [3];

            if ((i % 50000) == 0)
            {
                current [10] = new HugePtrFree();
            }
            if ((i % 10000) == 0)
            {
                current [11] = new LargeStruct2 [1];
            }

            /* Test for 64 bit bitmap descriptors (#14834) */
            current [12] = new Non32bitBitmap()
            {
                o = new object(), i32 = 1, i33 = 1, i34 = 1, i35 = 1, o2 = new object()
            };

            current = (object[])current [0];
        }
    }
Пример #4
0
    public static int test_10_arm64_hfa_on_stack_llvm()
    {
        var arr = new LargeStruct2 [10, 10];

        for (int i = 0; i < 10; ++i)
        {
            for (int j = 0; j < 10; ++j)
            {
                arr [i, j].x = new FpStruct();
            }
        }

        var s1 = new FpStruct()
        {
            a = 1, b = 1, c = 10
        };

        return(pass_hfa_on_stack(s1, s1, s1));
    }
Пример #5
0
	static void Fill (int cycles) {
		object[] root = new object [12];
		object[] current = root;
		for (int i = 0; i < cycles; ++i) {
			current [0] = new object [12];
			current [1] = new int [6];
			current [2] = new int [2,3];
			current [3] = new string (FOO);
			current [4] = new SmallBitMap ();
			current [5] = new LargeBitMap ();
			current [6] = new ComplexBitMap ();
			current [7] = new PtrFree ();
			current [8] = new SmallMixed [3];
			current [9] = new LargeMixed [3];

			if ((i % 50000) == 0)
				current [10] = new HugePtrFree ();
			if ((i %  10000) == 0)
				current [11] = new LargeStruct2 [1];
	
			current = (object[])current [0];
		}
	}