Fix a long standing bug for AMD64 with bad assert.
authorLubomir Litchev <llitchev@live.com>
Tue, 17 Mar 2015 17:49:06 +0000 (10:49 -0700)
committerLubomir Litchev <llitchev@live.com>
Tue, 17 Mar 2015 22:23:08 +0000 (15:23 -0700)
commit8d584f2936abcd8efb7117fc0b44be33b7cebf48
tree3e6df83fb2d1f22bce1af64b903272cf527700da
parent6ccf4e2a5db4a8804f113b6958da43bd571c4848
Fix a long standing bug for AMD64 with bad assert.
When having a really large frame the code for generating funclet prolog
expects to have RAX being used as initReg. For AMD64 the RBP is being
pushed and then used as scratch (and passed as initReg.) This was causing
the assert to trigger.
Added code to handle properly use of RBP on AMD64 and also modified the
assert to properly allow RAX and RBP as initReg.
src/jit/codegencommon.cpp