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

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new ImplMapRow());
            }
        }
Example #2
0
        public ImplMapTable GetImplMapTable()
        {
            ImplMapTable table = m_heap [ImplMapTable.RId] as ImplMapTable;

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

            table = new ImplMapTable();
            InitializeTable(table);
            return(table);
        }
Example #3
0
        public ImplMapTable GetImplMapTable()
        {
            int rid = ImplMapTable.RId;

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

            ImplMapTable table = new ImplMapTable();

            table.Rows    = new RowCollection();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add(table);
            return(table);
        }
Example #4
0
		public ImplMapTable GetImplMapTable ()
		{
			ImplMapTable table = m_heap [ImplMapTable.RId] as ImplMapTable;
			if (table != null)
				return table;

			table = new ImplMapTable ();
			InitializeTable (table);
			return table;
		}
 public override void VisitImplMapTable(ImplMapTable table)
 {
     int number = m_rows [ImplMapTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new ImplMapRow ());
 }
        public ImplMapTable GetImplMapTable()
        {
            int rid = ImplMapTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as ImplMapTable;

            ImplMapTable table = new ImplMapTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
Example #7
0
		void EncodeImplMapTable (ImplMapTable table)
		{
			int index = 0;

			foreach (ImplMapRow row in table.Rows) {
				this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT);
				this.asm.LABEL (moduleName + " ImplMapRow#" + index);
				this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.ImplMapRow).ToString ());
				this.asm.DATA ((uint) row.MappingFlags);
				this.asm.DATA (row.MemberForwarded.ToUInt ());
				this.asm.DATA (row.ImportName);
				this.asm.DATA (row.ImportScope);
				++index;
			}

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