CreateStackLocal() public static method

Creates the stack local.
public static CreateStackLocal ( MosaType type, int index, bool pinned ) : Operand
type MosaType The type.
index int The index.
pinned bool if set to true [pinned].
return Operand
示例#1
0
        /// <summary>
        /// Adds the stack local.
        /// </summary>
        /// <param name="type">The type.</param>
        /// <returns></returns>
        public Operand AddStackLocal(MosaType type, bool pinned)
        {
            var local = Operand.CreateStackLocal(type, architecture.StackFrameRegister, LocalStack.Count, pinned);

            LocalStack.Add(local);
            return(local);
        }
示例#2
0
        /// <summary>
        /// Adds the stack local.
        /// </summary>
        /// <param name="type">The type.</param>
        /// <param name="pinned">if set to <c>true</c> [pinned].</param>
        /// <returns></returns>
        public Operand AddStackLocal(MosaType type, bool pinned)
        {
            var local = Operand.CreateStackLocal(type, LocalStack.Count, pinned);

            LocalStack.Add(local);
            return(local);
        }
示例#3
0
        /// <summary>
        /// Adds the stack local.
        /// </summary>
        /// <param name="type">The type.</param>
        /// <returns></returns>
        public Operand AddStackLocal(MosaType type)
        {
            var local = Operand.CreateStackLocal(type, architecture.StackFrameRegister, stackLocal.Count);

            stackLocal.Add(local);
            return(local);
        }