Index: src/compiler/simd-scalar-lowering.h |
diff --git a/src/compiler/simd-scalar-lowering.h b/src/compiler/simd-scalar-lowering.h |
index 70186fdf11d4283868f8215bbab12e4908428493..9c6766c6ba77afe98bf46e365eb793be43cdec59 100644 |
--- a/src/compiler/simd-scalar-lowering.h |
+++ b/src/compiler/simd-scalar-lowering.h |
@@ -33,6 +33,11 @@ class SimdScalarLowering { |
static const int kMaxLanes = 4; |
static const int kLaneWidth = 16 / kMaxLanes; |
+#if defined(V8_TARGET_BIG_ENDIAN) |
+ static constexpr int kLaneOffsets[4] = {3, 2, 1, 0}; |
+#else |
+ static constexpr int kLaneOffsets[4] = {0, 1, 2, 3}; |
+#endif |
struct Replacement { |
Node* node[kMaxLanes]; |
SimdType type; // represents what input type is expected |