Index: src/compiler/mips/instruction-selector-mips.cc |
diff --git a/src/compiler/mips/instruction-selector-mips.cc b/src/compiler/mips/instruction-selector-mips.cc |
index cccb39a7549b81d6b9672704d945ac072d6f562e..c9912673cec256c560156caaf635798492cf9697 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -1548,6 +1548,20 @@ InstructionSelector::SupportedMachineOperatorFlags() { |
MachineOperatorBuilder::kFloat32RoundTiesEven; |
} |
+// static |
+MachineOperatorBuilder::AlignmentRequirements |
+InstructionSelector::AlignmentRequirements() { |
+ if (IsMipsArchVariant(kMips32r6)) { |
+ return MachineOperatorBuilder::AlignmentRequirements:: |
+ FullUnalignedAccessSupport(); |
+ } else { |
+ DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || |
+ IsMipsArchVariant(kMips32r2)); |
+ return MachineOperatorBuilder::AlignmentRequirements:: |
+ NoUnalignedAccessSupport(); |
+ } |
+} |
+ |
} // namespace compiler |
} // namespace internal |
} // namespace v8 |