The arity fixup thunk as currently envisioned needs 5 temp registers. Other code may need another temp register as well. We can use bucketCounterRegister since its current use only really needs some entropy and that it isn't overwritten during value profiling.
Created attachment 204865 [details] Patch
Comment on attachment 204865 [details] Patch You should also make the emitValueProfilingSite() callers pass the scratch register (regT4) to emitValueProfilingSite(). That way, it will be clear if an opcode allocates regT4 for two uses.
(In reply to comment #2) > (From update of attachment 204865 [details]) > You should also make the emitValueProfilingSite() callers pass the scratch register (regT4) to emitValueProfilingSite(). That way, it will be clear if an opcode allocates regT4 for two uses. Will do.
Committed r151658: <http://trac.webkit.org/changeset/151658>