Class ParamListStandard

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public class ParamListStandard
    extends java.lang.Object
    implements ParamList
    Standard analysis for parameter lists
    • Field Detail

      • numgroup

        protected int numgroup
      • pointermax

        protected int pointermax
      • thisbeforeret

        protected boolean thisbeforeret
    • Constructor Detail

      • ParamListStandard

        public ParamListStandard()
    • Method Detail

      • assignAddress

        protected VariableStorage assignAddress​(Program program,
                                                DataType tp,
                                                int[] status,
                                                boolean ishiddenret,
                                                boolean isindirect)
        Assign next available memory chunk to type
        tp - type being assigned storage
        status - status from previous assignments
        Address of assigned memory chunk
      • assignMap

        public void assignMap​(Program prog,
                              DataType[] proto,
                              boolean isinput,
                              java.util.ArrayList<VariableStorage> res,
                              boolean addAutoParams)
        Description copied from interface: ParamList
        Given a list of datatypes, calculate the storage locations used for passing those datatypes
        Specified by:
        assignMap in interface ParamList
        prog - is the active progra
        proto - is the list of datatypes
        isinput - is true if this parameter list is being processed for input arguments, false for output
        res - is the vector for holding the VariableStorage corresponding to datatypes
        addAutoParams - if true add/process auto-parameters
      • getStackParameterAlignment

        public int getStackParameterAlignment()
        Description copied from interface: ParamList
        Return the amount of alignment used for parameters passed on the stack, or -1 if there are no stack params
        Specified by:
        getStackParameterAlignment in interface ParamList
        the alignment
      • getStackParameterOffset

        public java.lang.Long getStackParameterOffset()
        Description copied from interface: ParamList
        Find the boundary offset that separates parameters on the stack from other local variables This is usually the address of the first stack parameter, but if the stack grows positive, this is the first address AFTER the parameters on the stack
        Specified by:
        getStackParameterOffset in interface ParamList
      • possibleParamWithSlot

        public boolean possibleParamWithSlot​(Address loc,
                                             int size,
                                             ParamList.WithSlotRec res)
        Description copied from interface: ParamList
        Determine if a particular address range is a possible parameter, and if so what slot(s) it occupies
        Specified by:
        possibleParamWithSlot in interface ParamList
        loc - is the starting address of the range
        size - is the size of the range in bytes
        res - holds the resulting slot and slotsize
        true if the range is a possible parameter