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:
parent
4ac9f20601
commit
5ec91a4279
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user