Esempio n. 1
0
 public override StatementList AllocStaticVariable(IFieldReference field)
 {
     if (RequiresAllocation(field))
     {
         return(memAddr.AllocStaticVariable(field));
     }
     else
     {
         return(memBCT.AllocStaticVariable(field));
     }
 }
Esempio n. 2
0
        public StatementList AllocStaticVariables()
        {
            StatementList stmts = new StatementList();

            foreach (IFieldReference field in FieldTranslator.GetFieldReferences())
            {
                if (field.IsStatic)
                {
                    stmts.Add(dispatcher.AllocStaticVariable(field));
                }
            }

            return(stmts);
        }