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());
            }
        }
Example #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);
        }
Example #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);
        }
Example #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;
		}
 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;
        }
Example #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);
		}