Bug 1118344 - Disable inlining of simd_int32x4_add on ARM. r=jandem
authorNicolas B. Pierron <nicolas.b.pierron@mozilla.com>
Mon, 26 Jan 2015 14:11:14 +0100
changeset 225780 c39414ca483aeb1454a8589005ee729c85fc2da5
parent 225779 1515b55fc761ea5983903af7f9ef6b0fbb96c680
child 225781 f15260f6fa3e54d71d84305064bbfad55e7fd861
push id28175
push userryanvm@gmail.com
push dateMon, 26 Jan 2015 21:33:41 +0000
treeherdermozilla-central@a6f037b538ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1118344
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1118344 - Disable inlining of simd_int32x4_add on ARM. r=jandem CLOSED TREE
js/src/jit/BaselineIC.cpp
--- a/js/src/jit/BaselineIC.cpp
+++ b/js/src/jit/BaselineIC.cpp
@@ -8913,17 +8913,17 @@ GetTemplateObjectForNative(JSContext *cx
     if (native == obj_create && args.length() == 1 && args[0].isObjectOrNull()) {
         RootedObject proto(cx, args[0].toObjectOrNull());
         res.set(ObjectCreateImpl(cx, proto, TenuredObject));
         if (!res)
             return false;
         return true;
     }
 
-    if (native == js::simd_int32x4_add) {
+    if (native == js::simd_int32x4_add && JitSupportsSimd()) {
         Rooted<TypeDescr *> descr(cx, &Int32x4::GetTypeDescr(*cx->global()));
         res.set(TypedObject::createZeroed(cx, descr, 0, gc::TenuredHeap));
         if (!res)
             return false;
         return true;
     }
 
     return true;