Bug 983344 followup warning fix
authorSteve Fink <sfink@mozilla.com>
Fri, 14 Mar 2014 16:23:11 -0700
changeset 191788 4ab661c304304a26cf785e2a430abeaa6ec9ce54
parent 191787 07dc951bcff5fac6bad0245e37c970764fe9d874
child 191814 070c0ae538611f99a4dd3610cb97755f0645a6d0
child 191946 f19c420744bd384e599a2029e95919f84c07eff4
child 191963 83d4a82a846774be50b2f40b504bc248d64dfa41
child 191981 dd7692876de6da9b53f4fd3fc0ff6890b7f8da90
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs983344
milestone30.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 983344 followup warning fix
js/src/vm/TypedArrayObject.cpp
--- a/js/src/vm/TypedArrayObject.cpp
+++ b/js/src/vm/TypedArrayObject.cpp
@@ -912,18 +912,18 @@ class TypedArrayObjectTemplate : public 
             return true;
 
         Rooted<TypedArrayObject*> thisTypedArray(cx, &thisTypedArrayObj->as<TypedArrayObject>());
         JS_ASSERT(offset <= thisTypedArray->length());
         JS_ASSERT(len <= thisTypedArray->length() - offset);
         if (ar->is<TypedArrayObject>())
             return copyFromTypedArray(cx, thisTypedArray, ar, offset);
 
+#ifdef DEBUG
         JSRuntime *runtime = cx->runtime();
-#ifdef DEBUG
         uint64_t gcNumber = runtime->gcNumber;
 #endif
 
         NativeType *dest = static_cast<NativeType*>(thisTypedArray->viewData()) + offset;
         SkipRoot skipDest(cx, &dest);
 
         if (ar->is<ArrayObject>() && !ar->isIndexed() && ar->getDenseInitializedLength() >= len) {
             JS_ASSERT(ar->as<ArrayObject>().length() == len);