public override void VisitConstantTable(ConstantTable table) { int number = m_rows [ConstantTable.RId]; table.Rows = new RowCollection(number); for (int i = 0; i < number; i++) { table.Rows.Add(new ConstantRow()); } }
public ConstantTable GetConstantTable() { ConstantTable table = m_heap [ConstantTable.RId] as ConstantTable; if (table != null) { return(table); } table = new ConstantTable(); InitializeTable(table); return(table); }
public ConstantTable GetConstantTable() { int rid = ConstantTable.RId; if (m_heap.HasTable(rid)) { return(m_heap [rid] as ConstantTable); } ConstantTable table = new ConstantTable(); table.Rows = new RowCollection(); m_heap.Valid |= 1L << rid; m_heap.Tables.Add(table); return(table); }
public ConstantTable GetConstantTable () { ConstantTable table = m_heap [ConstantTable.RId] as ConstantTable; if (table != null) return table; table = new ConstantTable (); InitializeTable (table); return table; }
public override void VisitConstantTable(ConstantTable table) { int number = m_rows [ConstantTable.RId]; table.Rows = new RowCollection (number); for (int i = 0; i < number; i++) table.Rows.Add (new ConstantRow ()); }
public ConstantTable GetConstantTable() { int rid = ConstantTable.RId; if (m_heap.HasTable (rid)) return m_heap [rid] as ConstantTable; ConstantTable table = new ConstantTable (); table.Rows = new RowCollection (); m_heap.Valid |= 1L << rid; m_heap.Tables.Add (table); return table; }
void EncodeConstantTable (ConstantTable table) { // TODO: shall we move constants here as well or not? // Also, the ElementType enum in Cecil does not specify // a base type. this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT); this.asm.LABEL (moduleName + " ConstantArray"); this.asm.AddArrayFields (0); }