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

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new ModuleRefRow());
            }
        }
Esempio n. 2
0
        public ModuleRefTable GetModuleRefTable()
        {
            ModuleRefTable table = m_heap [ModuleRefTable.RId] as ModuleRefTable;

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

            table = new ModuleRefTable();
            InitializeTable(table);
            return(table);
        }
Esempio n. 3
0
        public ModuleRefTable GetModuleRefTable()
        {
            int rid = ModuleRefTable.RId;

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

            ModuleRefTable table = new ModuleRefTable();

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

			table = new ModuleRefTable ();
			InitializeTable (table);
			return table;
		}
Esempio n. 5
0
 public override void VisitModuleRefTable(ModuleRefTable table)
 {
     int number = m_rows [ModuleRefTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new ModuleRefRow ());
 }
        public ModuleRefTable GetModuleRefTable()
        {
            int rid = ModuleRefTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as ModuleRefTable;

            ModuleRefTable table = new ModuleRefTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
Esempio n. 7
0
		void EncodeModuleRefTable (ModuleRefTable table)
		{
			int index = 0;

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

				this.asm.DATA (row.Name);
				++index;
			}

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