public override void VisitTypeSpecTable(TypeSpecTable table) { int number = m_rows [TypeSpecTable.RId]; table.Rows = new RowCollection(number); for (int i = 0; i < number; i++) { table.Rows.Add(new TypeSpecRow()); } }
public TypeSpecTable GetTypeSpecTable() { TypeSpecTable table = m_heap [TypeSpecTable.RId] as TypeSpecTable; if (table != null) { return(table); } table = new TypeSpecTable(); InitializeTable(table); return(table); }
public TypeSpecTable GetTypeSpecTable() { int rid = TypeSpecTable.RId; if (m_heap.HasTable(rid)) { return(m_heap [rid] as TypeSpecTable); } TypeSpecTable table = new TypeSpecTable(); table.Rows = new RowCollection(); m_heap.Valid |= 1L << rid; m_heap.Tables.Add(table); return(table); }
public TypeSpecTable GetTypeSpecTable () { TypeSpecTable table = m_heap [TypeSpecTable.RId] as TypeSpecTable; if (table != null) return table; table = new TypeSpecTable (); InitializeTable (table); return table; }
public override void VisitTypeSpecTable(TypeSpecTable table) { int number = m_rows [TypeSpecTable.RId]; table.Rows = new RowCollection (number); for (int i = 0; i < number; i++) table.Rows.Add (new TypeSpecRow ()); }
public TypeSpecTable GetTypeSpecTable() { int rid = TypeSpecTable.RId; if (m_heap.HasTable (rid)) return m_heap [rid] as TypeSpecTable; TypeSpecTable table = new TypeSpecTable (); table.Rows = new RowCollection (); m_heap.Valid |= 1L << rid; m_heap.Tables.Add (table); return table; }
void EncodeTypeSpecTable (TypeSpecTable table) { int index = 0; foreach (TypeSpecRow row in table.Rows) { this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT); this.asm.LABEL (moduleName + " TypeSpecRow#" + index); this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.TypeSpecRow).ToString ()); this.asm.DATA (row.Signature); ++index; } this.MetadataArray ("TypeSpec", table); }