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

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new EventRow());
            }
        }
Beispiel #2
0
        public EventTable GetEventTable()
        {
            EventTable table = m_heap [EventTable.RId] as EventTable;

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

            table = new EventTable();
            InitializeTable(table);
            return(table);
        }
Beispiel #3
0
        public EventTable GetEventTable()
        {
            int rid = EventTable.RId;

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

            EventTable table = new EventTable();

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

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

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

			foreach (EventRow row in table.Rows) {
				this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT);
				this.asm.LABEL (moduleName + " EventRow#" + index);
				this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.EventRow).ToString ());
				this.asm.DATA ((ushort) row.EventFlags);
				this.asm.DATA (row.Name);
				this.asm.DATA (row.EventType.ToUInt ());
				++index;
			}

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