private StackValue(StackValueKind kind, TypeDesc type = null, MethodDesc method = null, StackValueFlags flags = StackValueFlags.None)
 {
     this.Kind   = kind;
     this.Type   = type;
     this.Method = method;
     this.Flags  = flags;
 }
 public void SetIsReadOnly()
 {
     Flags |= StackValueFlags.ReadOnly;
 }
 public void SetIsPermanentHome()
 {
     Debug.Assert(Kind == StackValueKind.ByRef);
     Flags |= StackValueFlags.PermanentHome;
 }
 public void SetIsThisPtr()
 {
     Flags |= StackValueFlags.ThisPtr;
 }
 public void SetIsReadOnly()
 {
     Debug.Assert(Kind == StackValueKind.ByRef);
     Flags |= StackValueFlags.ReadOnly;
 }