Don't shadow a member variable when attempting to reset it. (bug 732945, r=jandem)
authorMarty Rosenberg <mrosenberg@mozilla.com>
Tue, 06 Mar 2012 02:05:51 -0800
changeset 112235 9f5a72b6b814f98dad5285d5e6a98b31cd5fe7d5
parent 112234 863a496c7cb8d9195a09f9d9e8ce2ce89162dfa1
child 112236 bd6f0d8274571f8d08a88934a4157f438a8621ad
push id1708
push userakeybl@mozilla.com
push dateMon, 19 Nov 2012 21:10:21 +0000
treeherdermozilla-beta@27b14fe50103 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs732945
milestone13.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
Don't shadow a member variable when attempting to reset it. (bug 732945, r=jandem)
js/src/ion/shared/IonAssemblerBufferWithConstantPools.h
--- a/js/src/ion/shared/IonAssemblerBufferWithConstantPools.h
+++ b/js/src/ion/shared/IonAssemblerBufferWithConstantPools.h
@@ -165,17 +165,17 @@ struct Pool {
         }
         memcpy(&poolData[numEntries * immSize], data, immSize);
         loadOffsets.append(off.getOffset());
         return numEntries++;
     }
 
     bool reset() {
         numEntries = 0;
-        uint32 buffSize = 8;
+        buffSize = 8;
         poolData = static_cast<uint8*>(malloc(buffSize * immSize));
         if (poolData == NULL)
             return false;
         other = new Pool(other->maxOffset, other->immSize, other->instSize, other->bias,
                          other->alignment, other->isBackref, other->canDedup);
         if (other == NULL)
             return false;
         new (&loadOffsets) LoadOffsets;