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());
            }
        }
예제 #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);
        }
예제 #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);
        }
예제 #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;
		}
예제 #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 ());
 }
예제 #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;
        }
예제 #7
0
파일: Metadata.cs 프로젝트: sharpos/SharpOS
		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);
		}