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

Unified Diff: src/compiler/int64-lowering.h

Issue 2080213004: Fix int64 lowering on big-endian architectures. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | src/compiler/int64-lowering.cc » ('j') | src/compiler/int64-lowering.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/int64-lowering.h
diff --git a/src/compiler/int64-lowering.h b/src/compiler/int64-lowering.h
index 054c4219948bb640fc4bc43adb89f655046c4987..1a298d2f608007db69e0f27d96e1d2d3e0adfdc6 100644
--- a/src/compiler/int64-lowering.h
+++ b/src/compiler/int64-lowering.h
@@ -26,6 +26,22 @@ class Int64Lowering {
static int GetParameterCountAfterLowering(
Signature<MachineRepresentation>* signature);
+ static int GetLowerWordOffset() {
titzer 2016/06/21 21:22:59 Can you move these into the CC file?
+#if defined(V8_TARGET_LITTLE_ENDIAN)
+ return 0;
+#elif defined(V8_TARGET_BIG_ENDIAN)
+ return 4;
+#endif
+ }
+
+ static int GetHigherWordOffset() {
+#if defined(V8_TARGET_LITTLE_ENDIAN)
+ return 4;
+#elif defined(V8_TARGET_BIG_ENDIAN)
+ return 0;
+#endif
+ }
+
private:
enum class State : uint8_t { kUnvisited, kOnStack, kVisited };
« no previous file with comments | « no previous file | src/compiler/int64-lowering.cc » ('j') | src/compiler/int64-lowering.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698