Fix small sized argument output with tracing enabled (mono/mono#16841)
This is a legacy of before the profiler was used for the trace
output; it would apparently get the raw stack pointer and try to
dereference things by recalculating the offset as needed (no for
little, yes for big). However, because the profiler returns the
actual fixed-up pointer, this recalculation isn't needed on BE,
but instead grabs garbage a bit ahead on the stack.
To fix, use what was the little endian case unconditionally.
Example before:
[1: 20.70598 14] ENTER: System.Globalization.CultureInfo:.ctor (int,bool,bool)(this:
700000000408fb0[System.Globalization.CultureInfo platform.exe],
271824864, -32, -32, )
Example after:
[1: 1.93377 14] ENTER: System.Globalization.CultureInfo:.ctor (int,bool,bool)(this:
700000000408fb0[System.Globalization.CultureInfo platform.exe], 127, 0, 1)
Commit migrated from https://github.com/mono/mono/commit/
babe881bf2753043023ee88b240c85adbcbdd767