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

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

Issue 19857006: Introduce StackOperandForArgument for X64 to access stack argument (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
Index: src/x64/macro-assembler-x64.h
diff --git a/src/x64/macro-assembler-x64.h b/src/x64/macro-assembler-x64.h
index 9d5d2a31c5ceee61652cd923ca83e8a13d1388ca..644d6923f2fe0fecf5578bf6940bc2a16606df37 100644
--- a/src/x64/macro-assembler-x64.h
+++ b/src/x64/macro-assembler-x64.h
@@ -1518,6 +1518,17 @@ inline Operand StackSpaceOperand(int index) {
}
+inline Operand StackArgumentOperand(int32_t disp) {
danno 2013/07/24 22:32:52 Please just call this StackOperand. There are case
+ return Operand(rsp, disp + kPCOnStackSize - kPointerSize);
+}
+
+
+inline Operand StackArgumentOperand(Register index,
danno 2013/07/24 22:32:52 Please just call this StackOperand.
+ ScaleFactor scale,
+ int32_t disp) {
+ return Operand(rsp, index, scale, disp + kPCOnStackSize - kPointerSize);
+}
+
#ifdef GENERATED_CODE_COVERAGE
extern void LogGeneratedCodeCoverage(const char* file_line);
« no previous file with comments | « src/x64/ic-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | src/x64/stub-cache-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698