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 }; |