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

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new MethodSemanticsRow());
            }
        }
Пример #2
0
        public MethodSemanticsTable GetMethodSemanticsTable()
        {
            MethodSemanticsTable table = m_heap [MethodSemanticsTable.RId] as MethodSemanticsTable;

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

            table = new MethodSemanticsTable();
            InitializeTable(table);
            return(table);
        }
Пример #3
0
        public MethodSemanticsTable GetMethodSemanticsTable()
        {
            int rid = MethodSemanticsTable.RId;

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

            MethodSemanticsTable table = new MethodSemanticsTable();

            table.Rows    = new RowCollection();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add(table);
            return(table);
        }
Пример #4
0
		public MethodSemanticsTable GetMethodSemanticsTable ()
		{
			MethodSemanticsTable table = m_heap [MethodSemanticsTable.RId] as MethodSemanticsTable;
			if (table != null)
				return table;

			table = new MethodSemanticsTable ();
			InitializeTable (table);
			return table;
		}
Пример #5
0
 public override void VisitMethodSemanticsTable(MethodSemanticsTable table)
 {
     int number = m_rows [MethodSemanticsTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new MethodSemanticsRow ());
 }
Пример #6
0
        public MethodSemanticsTable GetMethodSemanticsTable()
        {
            int rid = MethodSemanticsTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as MethodSemanticsTable;

            MethodSemanticsTable table = new MethodSemanticsTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
Пример #7
0
		void EncodeMethodSemanticsTable (MethodSemanticsTable table)
		{
			int index = 0;

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

				this.asm.DATA ((uint) row.Semantics);
				this.asm.DATA (row.Method);
				this.asm.DATA (row.Association.ToUInt ());
				++index;
			}

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