예제 #1
0
        private Mem BaseVarMem(BaseVar var, int ptrSize)
        {
            Contract.Requires(var != null);

            int memSize = (ptrSize == Operand.InvalidValue ? var.Size : (byte)ptrSize);
            Mem m = new Mem(var.Id, memSize);
            return m;
        }
예제 #2
0
        internal static Mem BaseVarMem(BaseVar var, int ptrSize)
        {
            Contract.Requires(var != null);

            int memSize = (ptrSize == InvalidValue) ? var.Size : (byte)ptrSize;
            Mem m = new Mem(var.Id, memSize);
            return m;
        }