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

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new TypeSpecRow());
            }
        }
Exemplo n.º 2
0
        public TypeSpecTable GetTypeSpecTable()
        {
            TypeSpecTable table = m_heap [TypeSpecTable.RId] as TypeSpecTable;

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

            table = new TypeSpecTable();
            InitializeTable(table);
            return(table);
        }
Exemplo n.º 3
0
        public TypeSpecTable GetTypeSpecTable()
        {
            int rid = TypeSpecTable.RId;

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

            TypeSpecTable table = new TypeSpecTable();

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

			table = new TypeSpecTable ();
			InitializeTable (table);
			return table;
		}
Exemplo n.º 5
0
 public override void VisitTypeSpecTable(TypeSpecTable table)
 {
     int number = m_rows [TypeSpecTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new TypeSpecRow ());
 }
Exemplo n.º 6
0
        public TypeSpecTable GetTypeSpecTable()
        {
            int rid = TypeSpecTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as TypeSpecTable;

            TypeSpecTable table = new TypeSpecTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
Exemplo n.º 7
0
		void EncodeTypeSpecTable (TypeSpecTable table)
		{
			int index = 0;

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

				this.asm.DATA (row.Signature);

				++index;
			}

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