public override void VisitFieldMarshalTable(FieldMarshalTable table)
        {
            int number = m_rows [FieldMarshalTable.RId];

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new FieldMarshalRow());
            }
        }
Exemple #2
0
        public FieldMarshalTable GetFieldMarshalTable()
        {
            FieldMarshalTable table = m_heap [FieldMarshalTable.RId] as FieldMarshalTable;

            if (table != null)
            {
                return(table);
            }

            table = new FieldMarshalTable();
            InitializeTable(table);
            return(table);
        }
Exemple #3
0
        public FieldMarshalTable GetFieldMarshalTable()
        {
            int rid = FieldMarshalTable.RId;

            if (m_heap.HasTable(rid))
            {
                return(m_heap [rid] as FieldMarshalTable);
            }

            FieldMarshalTable table = new FieldMarshalTable();

            table.Rows    = new RowCollection();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add(table);
            return(table);
        }
Exemple #4
0
		public FieldMarshalTable GetFieldMarshalTable ()
		{
			FieldMarshalTable table = m_heap [FieldMarshalTable.RId] as FieldMarshalTable;
			if (table != null)
				return table;

			table = new FieldMarshalTable ();
			InitializeTable (table);
			return table;
		}
 public override void VisitFieldMarshalTable(FieldMarshalTable table)
 {
     int number = m_rows [FieldMarshalTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new FieldMarshalRow ());
 }
        public FieldMarshalTable GetFieldMarshalTable()
        {
            int rid = FieldMarshalTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as FieldMarshalTable;

            FieldMarshalTable table = new FieldMarshalTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
Exemple #7
0
		void EncodeFieldMarshalTable (FieldMarshalTable table)
		{
			int index = 0;

			foreach (FieldMarshalRow row in table.Rows) {
				this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT);
				this.asm.LABEL (moduleName + " FieldMarshalRow#" + index);
				this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.FieldMarshalRow).ToString ());
				this.asm.DATA (row.Parent.ToUInt ());
				this.asm.DATA (row.NativeType);
				++index;
			}

			this.MetadataArray ("FieldMarshal", table);
		}