Bug 843733 - Fix warning with gcc 4.7. r=mjrosenb
authorNicolas B. Pierron <nicolas.b.pierron@mozilla.com>
Wed, 06 Mar 2013 18:21:50 -0800
changeset 124048 e60d44394c029fa49c3adef3bfbe600071cb26ac
parent 124047 cddf5f75843f1b2b7740d61ace87013cbcc914e9
child 124049 388dafae7c9c615a577024f4af78483e3ba6e7cd
push id24406
push userryanvm@gmail.com
push dateThu, 07 Mar 2013 17:19:02 +0000
treeherdermozilla-central@71395a927025 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmjrosenb
bugs843733
milestone22.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 843733 - Fix warning with gcc 4.7. r=mjrosenb
js/src/ion/shared/IonAssemblerBufferWithConstantPools.h
--- a/js/src/ion/shared/IonAssemblerBufferWithConstantPools.h
+++ b/js/src/ion/shared/IonAssemblerBufferWithConstantPools.h
@@ -670,18 +670,19 @@ struct AssemblerBufferWithConstantPool :
             inBackref = false;
             IonSpew(IonSpew_Pools, "[%d] Aborting because the pool is empty", id);
             // Bail out early, since we don't want to even pretend these pools exist.
             return;
         }
         JS_ASSERT(perforatedNode != NULL);
         if (numDumps >= (1<<logBasePoolInfo) && (numDumps & (numDumps-1)) == 0) {
             // need to resize.
-            poolInfo = static_cast<PoolInfo*>(realloc_(poolInfo, sizeof(PoolInfo) * numDumps,
-                                                       sizeof(PoolInfo) * numDumps * 2));
+            poolInfo = static_cast<PoolInfo*>(
+                this->realloc_(poolInfo, sizeof(PoolInfo) * numDumps,
+                               sizeof(PoolInfo) * numDumps * 2));
             if (poolInfo == NULL) {
                 this->fail_oom();
                 return;
             }
         }
 
         // In order to figure out how to fix up the loads for the second half of the pool
         // we need to find where the bits of the pool that have been implemented end.