public PropertyMapTable GetPropertyMapTable () { PropertyMapTable table = m_heap [PropertyMapTable.RId] as PropertyMapTable; if (table != null) return table; table = new PropertyMapTable (); InitializeTable (table); return table; }
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; }
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 ()); }
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); }