Example #1
0
        private static void RegisterAll(ITypeResolver typeResolver)
        {
            // Object
            GetHashCodeGen.Register(typeResolver);
            EqualsGen.Register(typeResolver);
            MemberwiseCloneGen.Register(typeResolver);
            ObjectGetTypeGen.Register(typeResolver);

            // Array
            ArrayCopyGen.Register(typeResolver);
            ArrayClearGen.Register(typeResolver);
            ArrayGetLengthGen.Register(typeResolver);
            ArrayGetRankGen.Register(typeResolver);
            ArrayGetLowerBoundGen.Register(typeResolver);
            ArrayGetUpperBoundGen.Register(typeResolver);
            ArrayGetLengthDimGen.Register(typeResolver);
            ArrayInternalGetReferenceGen.Register(typeResolver);
            ArrayInternalSetValueGen.Register(typeResolver);

            // String
            FastAllocateStringGen.Register(typeResolver);

            // TypedReference
            TypedReferenceInternalToObjectGen.Register(typeResolver);

            UnsafeCastToStackPointerGen.Register(typeResolver);

            // Runtime helpers
            OffsetToStringData.Register(typeResolver);
        }
Example #2
0
        private static void RegisterAll(ICodeWriter codeWriter)
        {
#if !FOR_MSCORLIBTEST
            GetHashCodeGen.Register(codeWriter);
            EqualsGen.Register(codeWriter);
            MemberwiseCloneGen.Register(codeWriter);
            ArrayCopyGen.Register(codeWriter);
            ArrayClearGen.Register(codeWriter);
#endif
        }