public override void VisitMethodImplTable(MethodImplTable table) { int number = m_rows [MethodImplTable.RId]; table.Rows = new RowCollection(number); for (int i = 0; i < number; i++) { table.Rows.Add(new MethodImplRow()); } }
public MethodImplTable GetMethodImplTable() { MethodImplTable table = m_heap [MethodImplTable.RId] as MethodImplTable; if (table != null) { return(table); } table = new MethodImplTable(); InitializeTable(table); return(table); }
public MethodImplTable GetMethodImplTable() { int rid = MethodImplTable.RId; if (m_heap.HasTable(rid)) { return(m_heap [rid] as MethodImplTable); } MethodImplTable table = new MethodImplTable(); table.Rows = new RowCollection(); m_heap.Valid |= 1L << rid; m_heap.Tables.Add(table); return(table); }
public MethodImplTable GetMethodImplTable () { MethodImplTable table = m_heap [MethodImplTable.RId] as MethodImplTable; if (table != null) return table; table = new MethodImplTable (); InitializeTable (table); return table; }
public override void VisitMethodImplTable(MethodImplTable table) { int number = m_rows [MethodImplTable.RId]; table.Rows = new RowCollection (number); for (int i = 0; i < number; i++) table.Rows.Add (new MethodImplRow ()); }
public MethodImplTable GetMethodImplTable() { int rid = MethodImplTable.RId; if (m_heap.HasTable (rid)) return m_heap [rid] as MethodImplTable; MethodImplTable table = new MethodImplTable (); table.Rows = new RowCollection (); m_heap.Valid |= 1L << rid; m_heap.Tables.Add (table); return table; }
void EncodeMethodImplTable (MethodImplTable table) { int index = 0; foreach (MethodImplRow row in table.Rows) { this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT); this.asm.LABEL (moduleName + " MethodImplRow#" + index); this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.MethodImplRow).ToString ()); this.asm.DATA (row.Class); this.asm.DATA (row.MethodBody.ToUInt ()); this.asm.DATA (row.MethodDeclaration.ToUInt ()); ++index; } this.MetadataArray ("MethodImpl", table); }