Bug 903501 - part 4 - initialize BufferSlice members in a form amenable to -Wreorder; r=jandem
authorNathan Froyd <froydnj@mozilla.com>
Fri, 09 Aug 2013 12:21:52 -0400
changeset 141918 4b5d40e468d523ed94c362ad25b4fc405e1d1efa
parent 141917 2b4c8614250ac844034151521c938a9e5bc5971e
child 141919 f00d22fc0840cc9e62459a9f0ec5d3ad97a358cb
push id32287
push usernfroyd@mozilla.com
push dateFri, 09 Aug 2013 20:53:57 +0000
treeherdermozilla-inbound@0d42eb2f5b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs903501
milestone26.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 903501 - part 4 - initialize BufferSlice members in a form amenable to -Wreorder; r=jandem
js/src/jit/shared/IonAssemblerBuffer.h
--- a/js/src/jit/shared/IonAssemblerBuffer.h
+++ b/js/src/jit/shared/IonAssemblerBuffer.h
@@ -67,17 +67,17 @@ struct BufferSlice {
         this->next = next_;
         next_->prev = this;
     }
 
     uint8_t instructions [SliceSize];
     unsigned int size() {
         return nodeSize;
     }
-    BufferSlice() : next(NULL), prev(NULL), nodeSize(0) {}
+    BufferSlice() : prev(NULL), next(NULL), nodeSize(0) {}
     void putBlob(uint32_t instSize, uint8_t* inst) {
         if (inst != NULL)
             memcpy(&instructions[size()], inst, instSize);
         nodeSize += instSize;
     }
 };
 
 template<int SliceSize, class Inst>