Backed out changeset 12620bb88003 (bug 1312480) a=backout
authorWes Kocher <wkocher@mozilla.com>
Mon, 09 Jan 2017 12:25:59 -0800
changeset 359317 15bc266327e4345d5e830520f5e055c39aac3996
parent 359316 6dc2ca24bd0bcb88992ae72e4fb8285ea8e24333
child 359318 adb88a603efb0efe74e23cd87066317bea2c82f7
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1312480
milestone51.0
backs out12620bb88003928dc6395593a6090f892e31d89a
Backed out changeset 12620bb88003 (bug 1312480) a=backout
js/src/vm/TypedArrayObject.cpp
--- a/js/src/vm/TypedArrayObject.cpp
+++ b/js/src/vm/TypedArrayObject.cpp
@@ -224,20 +224,18 @@ JS_FOR_EACH_TYPED_ARRAY(OBJECT_MOVED_TYP
         MOZ_ASSERT(!nursery.isInside(data));
         newObj->initPrivate(data);
     }
 
     mozilla::PodCopy(newObj->elements(), oldObj->elements(), nbytes);
 
     // Set a forwarding pointer for the element buffers in case they were
     // preserved on the stack by Ion.
-    if (nbytes > 0) {
-        nursery.maybeSetForwardingPointer(trc, oldObj->elements(), newObj->elements(),
-                                          /* direct = */nbytes >= sizeof(uintptr_t));
-    }
+    nursery.maybeSetForwardingPointer(trc, oldObj->elements(), newObj->elements(),
+                                      /* direct = */nbytes >= sizeof(uintptr_t));
 
     return newObj->hasInlineElements() ? 0 : nbytes;
 }
 
 bool
 TypedArrayObject::hasInlineElements() const
 {
     return elements() == this->fixedData(TypedArrayObject::FIXED_DATA_START) &&