Index: src/regexp-macro-assembler.cc |
diff --git a/src/regexp-macro-assembler.cc b/src/regexp-macro-assembler.cc |
index 52df648d9a512455ea03bbec556b5248a9aff7b3..c4bfc8d7f70ce591537b39c4a4b823c310d066fb 100644 |
--- a/src/regexp-macro-assembler.cc |
+++ b/src/regexp-macro-assembler.cc |
@@ -24,6 +24,15 @@ RegExpMacroAssembler::~RegExpMacroAssembler() { |
} |
+bool RegExpMacroAssembler::CanReadUnaligned() { |
+#ifdef V8_HOST_CAN_READ_UNALIGNED |
+ return true; |
+#else |
+ return false; |
+#endif |
+} |
+ |
+ |
#ifndef V8_INTERPRETED_REGEXP // Avoid unused code, e.g., on ARM. |
NativeRegExpMacroAssembler::NativeRegExpMacroAssembler(Zone* zone) |