Push rdi instead of rsi when probing for CPU features.

TBR=svenpanne@chromium.org
BUG=v8:2238
TEST=

Review URL: https://chromiumcodereview.appspot.com/10806013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12135 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
yangguo@chromium.org 2012-07-18 15:05:04 +00:00
parent 71618ee6aa
commit 39a16ac071

View File

@ -75,7 +75,7 @@ void CpuFeatures::Probe() {
// Save old rsp, since we are going to modify the stack.
__ push(rbp);
__ pushfq();
__ push(rsi);
__ push(rdi);
__ push(rcx);
__ push(rbx);
__ movq(rbp, rsp);
@ -129,7 +129,7 @@ void CpuFeatures::Probe() {
__ movq(rsp, rbp);
__ pop(rbx);
__ pop(rcx);
__ pop(rsi);
__ pop(rdi);
__ popfq();
__ pop(rbp);
__ ret(0);