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

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new ConstantRow());
            }
        }
예제 #2
0
        public ConstantTable GetConstantTable()
        {
            ConstantTable table = m_heap [ConstantTable.RId] as ConstantTable;

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

            table = new ConstantTable();
            InitializeTable(table);
            return(table);
        }
예제 #3
0
        public ConstantTable GetConstantTable()
        {
            int rid = ConstantTable.RId;

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

            ConstantTable table = new ConstantTable();

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

			table = new ConstantTable ();
			InitializeTable (table);
			return table;
		}
예제 #5
0
 public override void VisitConstantTable(ConstantTable table)
 {
     int number = m_rows [ConstantTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new ConstantRow ());
 }
예제 #6
0
        public ConstantTable GetConstantTable()
        {
            int rid = ConstantTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as ConstantTable;

            ConstantTable table = new ConstantTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
예제 #7
0
파일: Metadata.cs 프로젝트: sharpos/SharpOS
		void EncodeConstantTable (ConstantTable table)
		{
			// TODO: shall we move constants here as well or not?
			// Also, the ElementType enum in Cecil does not specify
			// a base type.

			this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT);
			this.asm.LABEL (moduleName + " ConstantArray");
			this.asm.AddArrayFields (0);
		}