public synchronized Parameter[] getParameters() {

		loadRegisterParameterList();

		Parameter[] parms = new Parameter[regParams.size() + frame.getParameterCount()];
		int ordinal = 0;

		for (Parameter rp : regParams) {
			parms[ordinal++] = rp;
		}

		try {
			Variable[] stackParams = frame.getParameters();
			for (Variable stackParam : stackParams) {
				parms[ordinal++] = new OldFunctionParameter(stackParam.getName(), ordinal,
					stackParam.getDataType(), stackParam.getVariableStorage(), program,
					SourceType.USER_DEFINED);
			}
		}
		catch (InvalidInputException e) {
			throw new RuntimeException(e); // unexpected
		}
		return parms;
	}
Load the register variable/parameter list from the database.
@return register
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/oldfunction/OldFunctionDataDB.java