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

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new MethodPtrRow());
            }
        }
Exemple #2
0
        public MethodPtrTable GetMethodPtrTable()
        {
            MethodPtrTable table = m_heap [MethodPtrTable.RId] as MethodPtrTable;

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

            table = new MethodPtrTable();
            InitializeTable(table);
            return(table);
        }
Exemple #3
0
		public MethodPtrTable GetMethodPtrTable ()
		{
			MethodPtrTable table = m_heap [MethodPtrTable.RId] as MethodPtrTable;
			if (table != null)
				return table;

			table = new MethodPtrTable ();
			InitializeTable (table);
			return table;
		}
 public override void VisitMethodPtrTable(MethodPtrTable table)
 {
     int number = m_rows [MethodPtrTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new MethodPtrRow ());
 }
Exemple #5
0
		void EncodeMethodPtrTable (MethodPtrTable table)
		{
			int index = 0;

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

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

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