public override void VisitGenericParamTable(GenericParamTable table) { int number = m_rows [GenericParamTable.RId]; table.Rows = new RowCollection(number); for (int i = 0; i < number; i++) { table.Rows.Add(new GenericParamRow()); } }
public GenericParamTable GetGenericParamTable() { GenericParamTable table = m_heap [GenericParamTable.RId] as GenericParamTable; if (table != null) { return(table); } table = new GenericParamTable(); InitializeTable(table); return(table); }
public GenericParamTable GetGenericParamTable() { int rid = GenericParamTable.RId; if (m_heap.HasTable(rid)) { return(m_heap [rid] as GenericParamTable); } GenericParamTable table = new GenericParamTable(); table.Rows = new RowCollection(); m_heap.Valid |= 1L << rid; m_heap.Tables.Add(table); return(table); }
public GenericParamTable GetGenericParamTable () { GenericParamTable table = m_heap [GenericParamTable.RId] as GenericParamTable; if (table != null) return table; table = new GenericParamTable (); InitializeTable (table); return table; }
public override void VisitGenericParamTable(GenericParamTable table) { int number = m_rows [GenericParamTable.RId]; table.Rows = new RowCollection (number); for (int i = 0; i < number; i++) table.Rows.Add (new GenericParamRow ()); }
public GenericParamTable GetGenericParamTable() { int rid = GenericParamTable.RId; if (m_heap.HasTable (rid)) return m_heap [rid] as GenericParamTable; GenericParamTable table = new GenericParamTable (); table.Rows = new RowCollection (); m_heap.Valid |= 1L << rid; m_heap.Tables.Add (table); return table; }
void EncodeGenericParamTable (GenericParamTable table) { int index = 0; foreach (GenericParamRow row in table.Rows) { this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT); this.asm.LABEL (moduleName + " GenericParamRow#" + index); this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.GenericParamRow).ToString ()); this.asm.DATA (row.Number); this.asm.DATA ((ushort) row.Flags); this.asm.DATA (row.Owner.ToUInt ()); this.asm.DATA (row.Name); ++index; } this.MetadataArray ("GenericParam", table); }