Revision: 6857
Author: [email protected]
Date: Fri Feb 18 08:16:17 2011
Log: 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.
[email protected]
Review URL: http://codereview.chromium.org/6544017
http://code.google.com/p/v8/source/detail?r=6857
Modified:
/branches/bleeding_edge/src/x64/assembler-x64.h
=======================================
--- /branches/bleeding_edge/src/x64/assembler-x64.h Fri Feb 18 06:00:46 2011
+++ /branches/bleeding_edge/src/x64/assembler-x64.h Fri Feb 18 08:16:17 2011
@@ -109,7 +109,9 @@
}
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) {
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev