Backed out changeset 93e30ec70eab (bug 1312480) a=backout
authorWes Kocher <wkocher@mozilla.com>
Mon, 09 Jan 2017 12:25:07 -0800
changeset 328587 0f9d69253ac67887b64f5efeffaebebb5929b1a7
parent 328586 2977ca1224525680cbfb5c3ce3018818b6dfd8f2
child 328612 6bcc24319ba51ce95b411a54c829294d0c1d1cef
push id85493
push userkwierso@gmail.com
push dateTue, 10 Jan 2017 00:45:12 +0000
treeherdermozilla-inbound@7822749b1b14 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1312480
milestone53.0a1
backs out93e30ec70eab89846b1bd6e40b306ff30f995079
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
Backed out changeset 93e30ec70eab (bug 1312480) a=backout MozReview-Commit-ID: ELwEPCxux27
js/src/vm/TypedArrayObject.cpp
--- a/js/src/vm/TypedArrayObject.cpp
+++ b/js/src/vm/TypedArrayObject.cpp
@@ -226,20 +226,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) &&