public override void VisitModuleTable(ModuleTable table)
        {
            int number = m_rows [ModuleTable.RId];

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

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

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

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

            ModuleTable table = new ModuleTable();

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

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

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

			foreach (ModuleRow row in table.Rows) {
				this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT);
				this.asm.LABEL (moduleName + " ModuleRow#" + index);
				this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.ModuleRow).ToString ());

				this.asm.DATA (row.Generation);
				this.asm.DATA (row.Name);
				this.asm.DATA (row.Mvid);
				this.asm.DATA (row.EncId);
				this.asm.DATA (row.EncBaseId);

				++index;
			}

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