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