paul99/v8m-rb — comment on commit 454ffc038185db4027d1d9ded81cece4d9f558a2
File:  line 0
By paul99:

I 'm uncertain if this makes any sense, but is the issue that we need to identify all (and only) the callers of li() macro that can have their constant replaced by LoadRoot()? If we could do this, then we could do the replacement Erik suggests.

Can we use a backtrace() function within the if clause of li() where FindRootIndex() function finds a valid Root? Then we'd see all the callers that are subject to FindRoot replacement.

Backtrace is not implemented right in glibc on mips, but should work fine on the simulator, where all code-generation is done on the x86. I am thinking of these functions: http://www.kernel.org/doc/man-pages/online/pages/man3/backtrace.3.html

I meant to test this tonight, but ran out of time.....