x64: Fix safepoint register index calculation.

We leave room for all registers on the stack so we have to add a bit.

This is not nicely factored and I need to do that. This will fix the breakage and I
will fix the rest on Monday.

TBR=lrn@chromium.org

Review URL: http://codereview.chromium.org/6544017

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6857 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ager@chromium.org 2011-02-18 16:16:17 +00:00
parent 4ac9f20601
commit 5ec91a4279

View File

@ -109,7 +109,9 @@ struct Register {
}
static int ToRspIndexForPushAll(Register reg) {
return kRspIndexForPushAllByRegisterCode[reg.code()];
// TODO(ager): Refactor this so we can use the right constants for
// this computation. Move it to the macro assembler as on ARM.
return kRspIndexForPushAllByRegisterCode[reg.code()] + 5;
}
static const char* AllocationIndexToString(int index) {