Index: src/regexp-macro-assembler.cc |
diff --git a/src/regexp-macro-assembler.cc b/src/regexp-macro-assembler.cc |
index a4719b53fc0439814bb63ac377b1d5a0532d35fa..82ba34d5c828d61b08fca838c40ffc85c4ab067a 100644 |
--- a/src/regexp-macro-assembler.cc |
+++ b/src/regexp-macro-assembler.cc |
@@ -67,11 +67,7 @@ NativeRegExpMacroAssembler::~NativeRegExpMacroAssembler() { |
bool NativeRegExpMacroAssembler::CanReadUnaligned() { |
-#ifdef V8_TARGET_CAN_READ_UNALIGNED |
- return !slow_safe(); |
-#else |
- return false; |
-#endif |
+ return FLAG_enable_unaligned_accesses && !slow_safe(); |
} |
const byte* NativeRegExpMacroAssembler::StringCharacterPosition( |