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

Unified Diff: src/lithium.cc

Issue 18014003: Add X32 port into V8 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 6 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/lithium.cc
===================================================================
--- src/lithium.cc (revision 15486)
+++ src/lithium.cc (working copy)
@@ -35,6 +35,9 @@
#elif V8_TARGET_ARCH_X64
#include "x64/lithium-x64.h"
#include "x64/lithium-codegen-x64.h"
+#elif V8_TARGET_ARCH_X32
+#include "x32/lithium-x32.h"
+#include "x32/lithium-codegen-x32.h"
#elif V8_TARGET_ARCH_ARM
#include "arm/lithium-arm.h"
#include "arm/lithium-codegen-arm.h"
@@ -269,8 +272,12 @@
// context in the fixed part of the frame.
return -(index + 3) * kPointerSize;
} else {
+#ifndef V8_TARGET_ARCH_X32
danno 2013/07/17 13:33:21 Eliminate this ifdef through use of constants disc
// Incoming parameter. Skip the return address.
return -(index - 1) * kPointerSize;
+#else
+ return -index * kPointerSize - 1 * kPointerSize + 2 * kHWRegSize;
+#endif
}
}

Powered by Google App Engine
This is Rietveld 408576698