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

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

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

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

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

            FieldLayoutTable table = new FieldLayoutTable();

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

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

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

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

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