Пример #1
0
		public PropertyMapTable GetPropertyMapTable ()
		{
			PropertyMapTable table = m_heap [PropertyMapTable.RId] as PropertyMapTable;
			if (table != null)
				return table;

			table = new PropertyMapTable ();
			InitializeTable (table);
			return table;
		}
Пример #2
0
        public PropertyMapTable GetPropertyMapTable()
        {
            int rid = PropertyMapTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as PropertyMapTable;

            PropertyMapTable table = new PropertyMapTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
Пример #3
0
 public override void VisitPropertyMapTable(PropertyMapTable table)
 {
     int number = m_rows [PropertyMapTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new PropertyMapRow ());
 }
Пример #4
0
		void EncodePropertyMapTable (PropertyMapTable table)
		{
			int index = 0;

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

				this.asm.DATA (row.Parent);
				this.asm.DATA (row.PropertyList);

				++index;
			}

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