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

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new EventMapRow());
            }
        }
Пример #2
0
        public EventMapTable GetEventMapTable()
        {
            EventMapTable table = m_heap [EventMapTable.RId] as EventMapTable;

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

            table = new EventMapTable();
            InitializeTable(table);
            return(table);
        }
Пример #3
0
        public EventMapTable GetEventMapTable()
        {
            int rid = EventMapTable.RId;

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

            EventMapTable table = new EventMapTable();

            table.Rows    = new RowCollection();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add(table);
            return(table);
        }
Пример #4
0
		public EventMapTable GetEventMapTable ()
		{
			EventMapTable table = m_heap [EventMapTable.RId] as EventMapTable;
			if (table != null)
				return table;

			table = new EventMapTable ();
			InitializeTable (table);
			return table;
		}
Пример #5
0
 public override void VisitEventMapTable(EventMapTable table)
 {
     int number = m_rows [EventMapTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new EventMapRow ());
 }
Пример #6
0
        public EventMapTable GetEventMapTable()
        {
            int rid = EventMapTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as EventMapTable;

            EventMapTable table = new EventMapTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
Пример #7
0
		void EncodeEventMapTable (EventMapTable table)
		{
			int index = 0;

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

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