コード例 #1
0
        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());
            }
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #4
0
ファイル: MetadataTableWriter.cs プロジェクト: nobled/mono
		public FieldLayoutTable GetFieldLayoutTable ()
		{
			FieldLayoutTable table = m_heap [FieldLayoutTable.RId] as FieldLayoutTable;
			if (table != null)
				return table;

			table = new FieldLayoutTable ();
			InitializeTable (table);
			return table;
		}
コード例 #5
0
 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 ());
 }
コード例 #6
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;
        }
コード例 #7
0
ファイル: Metadata.cs プロジェクト: sharpos/SharpOS
		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);
		}