Commit 5ec91a42 authored by ager@chromium.org's avatar ager@chromium.org

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
parent 4ac9f206
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment