[mips] Move public functions to the beginning of the class definition.

No intended functionality change.