Example #1
0
 public override void CopyInternalData(VMValue other)
 {
     base.CopyInternalData (other);
     VMValue_arrayinst oth = (VMValue_arrayinst)other;
     if(data == null)
         data = new int[oth.data.Length];
     for(int i = 0; i < data.Length; i++)
         data[i] = oth.data[i];
 }
Example #2
0
        public override void CopyInternalData(VMValue other)
        {
            base.CopyInternalData (other);
            VMValue_objectinst theOther = (VMValue_objectinst)other;
            classType = theOther.classType;
            holdingLockThreadID = theOther.holdingLockThreadID;
            holdingLockCount = theOther.holdingLockCount;

            for(int i = 0; i < ((VMValue_objectinst)other).fields.Count; i++)
                fields.Add(theOther.fields[i]);
        }
Example #3
0
 public override void CopyFrom(VMValue other)
 {
     this.value = ((VMValue_int64)other).value;
 }
Example #4
0
 public override void CopyInternalData(VMValue other)
 {
     base.CopyInternalData (other);
     arrayInstGuid = ((VMValue_array)other).arrayInstGuid;
 }
Example #5
0
 public override void CopyFrom(VMValue other)
 {
     arrayInstGuid = ((VMValue_array)other).arrayInstGuid;
 }
Example #6
0
 public virtual void CopyInternalData(VMValue other)
 {
     this.guid = other.guid;
     this.isConcrete = other.isConcrete;
     this.isThreadLocal = other.isThreadLocal;
 }
Example #7
0
 public abstract void CopyFrom(VMValue other);
Example #8
0
 public override void CopyFrom(VMValue other)
 {
     this.method = ((VMValue_ftn)other).method;
 }
Example #9
0
 public override void CopyFrom(VMValue other)
 {
     throw new Exception("Direct copy of arrayinst is not allowed");
 }
Example #10
0
 public override void CopyFrom(VMValue other)
 {
     this.valueguid = ((VMValue_object)other).valueguid;
 }
Example #11
0
 public void AddArgumentFront(VMValue value)
 {
     arguments.Insert(0, value.GUID);
 }
Example #12
0
 public override void CopyInternalData(VMValue other)
 {
     base.CopyInternalData(other);
     objGuid = ((VMValue_threadstart)other).objGuid;
     ftnGuid = ((VMValue_threadstart)other).ftnGuid;
 }
Example #13
0
 public override void CopyFrom(VMValue other)
 {
     objGuid = ((VMValue_threadstart)other).objGuid;
     ftnGuid = ((VMValue_threadstart)other).ftnGuid;
 }
Example #14
0
 public override void CopyFrom(VMValue other)
 {
     // TODO: object data assignment
     throw new Exception("TODO");
 }
Example #15
0
 public override void CopyInternalData(VMValue other)
 {
     base.CopyInternalData(other);
     method = ((VMValue_ftn)other).method;
 }
Example #16
0
 public override void CopyInternalData(VMValue other)
 {
     base.CopyInternalData (other);
     value = ((VMValue_int64)other).value;
 }
Example #17
0
 public VMStaticVariable(string name, VMValue value)
 {
     this.name = name;
     this.valueguid = value.GUID;
 }
Example #18
0
 public override void CopyInternalData(VMValue other)
 {
     base.CopyInternalData(other);
     classType = ((VMValue_object)other).classType;
     valueguid = ((VMValue_object)other).valueguid;
 }
Example #19
0
 /// <summary>
 /// Make a new value of the same type of the given value
 /// The given value is not modified after the operation, only its type is used
 /// </summary>
 /// <param name="value">The given value to get the type</param>
 /// <returns>A new value of the same type of the given value</returns>
 public VMValue MakeValue(VMValue value)
 {
     VMValue ret;
     if(value is VMValue_int32)
     {
         ret = new VMValue_int32(nextguid, 0);
         allValues.Add(nextguid, ret);
         nextguid++;
         return ret;
     }
     else if(value is VMValue_int64)
     {
         ret = new VMValue_int64(nextguid, 0);
         allValues.Add(nextguid, ret);
         nextguid++;
         return ret;
     }
     else if(value is VMValue_double)
     {
         ret = new VMValue_double(nextguid, 0);
         allValues.Add(nextguid, ret);
         nextguid++;
         return ret;
     }
     else if(value is VMValue_object)
     {
         ret = new VMValue_object(nextguid, ((VMValue_object)value).ClassType, -1);
         allValues.Add(nextguid, ret);
         nextguid++;
         return ret;
     }
     else if(value is VMValue_array)
     {
         ret = new VMValue_array(nextguid, -1);
         allValues.Add(nextguid, ret);
         nextguid++;
         return ret;
     }
     else
         throw new Exception("Unknown value type to make a value");
 }
Example #20
0
 public override void CopyInternalData(VMValue other)
 {
     base.CopyInternalData (other);
     threadStartGUID = ((VMValue_thread)other).threadStartGUID;
 }