Bug 1013996 - irregexp: avoid unaligned accesses in ARM code. r=bhackett, a=lmandel
authorDouglas Crosher <dtc-moz@scieneer.com>
Sun, 17 Aug 2014 14:45:31 +1000
changeset 208357 093bfa0f1dee
parent 208356 f5d4b16203aa
child 208360 ec3e586813b5
push id3837
push userryanvm@gmail.com
push date2014-08-21 02:10 +0000
treeherdermozilla-beta@093bfa0f1dee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhackett, lmandel
bugs1013996
milestone32.0
Bug 1013996 - irregexp: avoid unaligned accesses in ARM code. r=bhackett, a=lmandel
js/src/irregexp/NativeRegExpMacroAssembler.cpp
--- a/js/src/irregexp/NativeRegExpMacroAssembler.cpp
+++ b/js/src/irregexp/NativeRegExpMacroAssembler.cpp
@@ -1227,17 +1227,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[] =