Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1697)

Unified Diff: src/x64/assembler-x64.h

Issue 6544017: x64: Fix safepoint register index calculation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x64/assembler-x64.h
diff --git a/src/x64/assembler-x64.h b/src/x64/assembler-x64.h
index 6e1837d7e2150d23560d6a8c3c24e06bfd73a8f7..0bcb776341498c96ec33f17f794713441066abaf 100644
--- a/src/x64/assembler-x64.h
+++ b/src/x64/assembler-x64.h
@@ -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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698