Bug 1013996 - irregexp: Avoid unaligned accesses in ARM code. r=bhackett, a=sledru
authorDouglas Crosher <dtc-moz@scieneer.com>
Sun, 17 Aug 2014 14:45:31 +1000
changeset 216825 5e2a5b6c7a0d
parent 216820 bca0649c9b79
child 216826 f631df57b34c
push id3929
push userryanvm@gmail.com
push date2014-09-23 14:21 +0000
treeherdermozilla-beta@5e2a5b6c7a0d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhackett, sledru
bugs1013996
milestone33.0
Bug 1013996 - irregexp: Avoid unaligned accesses in ARM code. r=bhackett, a=sledru
js/src/irregexp/NativeRegExpMacroAssembler.cpp
--- a/js/src/irregexp/NativeRegExpMacroAssembler.cpp
+++ b/js/src/irregexp/NativeRegExpMacroAssembler.cpp
@@ -1315,17 +1315,17 @@ NativeRegExpMacroAssembler::CheckSpecial
       default:
         return false;
     }
 }
 
 bool
 NativeRegExpMacroAssembler::CanReadUnaligned()
 {
-#if defined(JS_CODEGEN_MIPS)
+#if defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_MIPS)
     return false;
 #else
     return true;
 #endif
 }
 
 const uint8_t
 NativeRegExpMacroAssembler::word_character_map[] =