Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 29cf434285fa61dbfa742adef9f2e6c264e9901e..3eac3b5f677af23cf5ae0984874561ba7a95168e 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -3190,17 +3190,17 @@ void MacroAssembler::CopyBytes(Register src, |
cmp(length, Operand(kPointerSize)); |
b(lt, &byte_loop); |
ldr(scratch, MemOperand(src, kPointerSize, PostIndex)); |
-#if CAN_USE_UNALIGNED_ACCESSES |
- str(scratch, MemOperand(dst, kPointerSize, PostIndex)); |
-#else |
- strb(scratch, MemOperand(dst, 1, PostIndex)); |
- mov(scratch, Operand(scratch, LSR, 8)); |
- strb(scratch, MemOperand(dst, 1, PostIndex)); |
- mov(scratch, Operand(scratch, LSR, 8)); |
- strb(scratch, MemOperand(dst, 1, PostIndex)); |
- mov(scratch, Operand(scratch, LSR, 8)); |
- strb(scratch, MemOperand(dst, 1, PostIndex)); |
-#endif |
+ if (CpuFeatures::IsSupported(UNALIGNED_ACCESSES)) { |
+ str(scratch, MemOperand(dst, kPointerSize, PostIndex)); |
+ } else { |
+ strb(scratch, MemOperand(dst, 1, PostIndex)); |
+ mov(scratch, Operand(scratch, LSR, 8)); |
+ strb(scratch, MemOperand(dst, 1, PostIndex)); |
+ mov(scratch, Operand(scratch, LSR, 8)); |
+ strb(scratch, MemOperand(dst, 1, PostIndex)); |
+ mov(scratch, Operand(scratch, LSR, 8)); |
+ strb(scratch, MemOperand(dst, 1, PostIndex)); |
+ } |
sub(length, length, Operand(kPointerSize)); |
b(&word_loop); |