public override void VisitMethodSemanticsTable(MethodSemanticsTable table) { int number = m_rows [MethodSemanticsTable.RId]; table.Rows = new RowCollection(number); for (int i = 0; i < number; i++) { table.Rows.Add(new MethodSemanticsRow()); } }
public MethodSemanticsTable GetMethodSemanticsTable() { MethodSemanticsTable table = m_heap [MethodSemanticsTable.RId] as MethodSemanticsTable; if (table != null) { return(table); } table = new MethodSemanticsTable(); InitializeTable(table); return(table); }
public MethodSemanticsTable GetMethodSemanticsTable() { int rid = MethodSemanticsTable.RId; if (m_heap.HasTable(rid)) { return(m_heap [rid] as MethodSemanticsTable); } MethodSemanticsTable table = new MethodSemanticsTable(); table.Rows = new RowCollection(); m_heap.Valid |= 1L << rid; m_heap.Tables.Add(table); return(table); }
public MethodSemanticsTable GetMethodSemanticsTable () { MethodSemanticsTable table = m_heap [MethodSemanticsTable.RId] as MethodSemanticsTable; if (table != null) return table; table = new MethodSemanticsTable (); InitializeTable (table); return table; }
public override void VisitMethodSemanticsTable(MethodSemanticsTable table) { int number = m_rows [MethodSemanticsTable.RId]; table.Rows = new RowCollection (number); for (int i = 0; i < number; i++) table.Rows.Add (new MethodSemanticsRow ()); }
public MethodSemanticsTable GetMethodSemanticsTable() { int rid = MethodSemanticsTable.RId; if (m_heap.HasTable (rid)) return m_heap [rid] as MethodSemanticsTable; MethodSemanticsTable table = new MethodSemanticsTable (); table.Rows = new RowCollection (); m_heap.Valid |= 1L << rid; m_heap.Tables.Add (table); return table; }
void EncodeMethodSemanticsTable (MethodSemanticsTable table) { int index = 0; foreach (MethodSemanticsRow row in table.Rows) { this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT); this.asm.LABEL (moduleName + " MethodSemanticsRow#" + index); this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.MethodSemanticsRow).ToString ()); this.asm.DATA ((uint) row.Semantics); this.asm.DATA (row.Method); this.asm.DATA (row.Association.ToUInt ()); ++index; } this.MetadataArray ("MethodSemantics", table); }