Inheritance: TargetLocation
        public static MonoVariableLocation Create(TargetMemoryAccess target, bool is_regoffset,
							   Register register, long regoffset,
							   bool is_byref)
        {
            MonoVariableLocation location = new MonoVariableLocation (
                is_regoffset, register, regoffset, is_byref);
            location.update (target);
            return location;
        }
Exemple #2
0
        public static MonoVariableLocation Create(TargetMemoryAccess target, bool is_regoffset,
                                                  Register register, long regoffset,
                                                  bool is_byref)
        {
            MonoVariableLocation location = new MonoVariableLocation(
                is_regoffset, register, regoffset, is_byref);

            location.update(target);
            return(location);
        }
        internal TargetLocation GetLocation(StackFrame frame, TargetMemoryAccess target)
        {
            Register register = frame.Registers [info.Index];

            if (info.Mode == VariableInfo.AddressMode.Register)
            {
                return(MonoVariableLocation.Create(
                           target, false, register, info.Offset, is_byref));
            }
            else if (info.Mode == VariableInfo.AddressMode.RegOffset)
            {
                return(MonoVariableLocation.Create(
                           target, true, register, info.Offset, is_byref));
            }
            else
            {
                return(null);
            }
        }