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

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new MethodSpecRow());
            }
        }
Example #2
0
        public MethodSpecTable GetMethodSpecTable()
        {
            MethodSpecTable table = m_heap [MethodSpecTable.RId] as MethodSpecTable;

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

            table = new MethodSpecTable();
            InitializeTable(table);
            return(table);
        }
Example #3
0
        public MethodSpecTable GetMethodSpecTable()
        {
            int rid = MethodSpecTable.RId;

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

            MethodSpecTable table = new MethodSpecTable();

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

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

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

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

				this.asm.DATA (row.Method.ToUInt ());
				this.asm.DATA (row.Instantiation);
				++index;
			}

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