Ejemplo n.º 1
0
        public override void VisitExportedTypeTable(ExportedTypeTable table)
        {
            int number = m_rows [ExportedTypeTable.RId];

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new ExportedTypeRow());
            }
        }
Ejemplo n.º 2
0
        public ExportedTypeTable GetExportedTypeTable()
        {
            ExportedTypeTable table = m_heap [ExportedTypeTable.RId] as ExportedTypeTable;

            if (table != null)
            {
                return(table);
            }

            table = new ExportedTypeTable();
            InitializeTable(table);
            return(table);
        }
Ejemplo n.º 3
0
        public ExportedTypeTable GetExportedTypeTable()
        {
            int rid = ExportedTypeTable.RId;

            if (m_heap.HasTable(rid))
            {
                return(m_heap [rid] as ExportedTypeTable);
            }

            ExportedTypeTable table = new ExportedTypeTable();

            table.Rows    = new RowCollection();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add(table);
            return(table);
        }
Ejemplo n.º 4
0
		public ExportedTypeTable GetExportedTypeTable ()
		{
			ExportedTypeTable table = m_heap [ExportedTypeTable.RId] as ExportedTypeTable;
			if (table != null)
				return table;

			table = new ExportedTypeTable ();
			InitializeTable (table);
			return table;
		}
Ejemplo n.º 5
0
 public override void VisitExportedTypeTable(ExportedTypeTable table)
 {
     int number = m_rows [ExportedTypeTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new ExportedTypeRow ());
 }
Ejemplo n.º 6
0
        public ExportedTypeTable GetExportedTypeTable()
        {
            int rid = ExportedTypeTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as ExportedTypeTable;

            ExportedTypeTable table = new ExportedTypeTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
Ejemplo n.º 7
0
		void EncodeExportedTypeTable (ExportedTypeTable table)
		{
			int index = 0;

			foreach (ExportedTypeRow row in table.Rows) {
				this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT);
				this.asm.LABEL (moduleName + " ExportedTypeRow#" + index);
				this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.ExportedTypeRow).ToString ());
				this.asm.DATA ((uint) row.Flags);
				this.asm.DATA (row.TypeDefId);
				this.asm.DATA (row.TypeName);
				this.asm.DATA (row.TypeNamespace);
				this.asm.DATA (row.Implementation.ToUInt ());
				++index;
			}

			this.MetadataArray ("ExportedType", table);
		}