Fix relocation table offset (bug 684126, r=sstangl).
authorDavid Anderson <danderson@mozilla.com>
Tue, 06 Sep 2011 13:55:56 -0700
changeset 105239 a2d39a64ab2804d78b8f28a0646af31b36bb012f
parent 105238 b4e0df409adc424e71d5d320c97bdcb8bfbd6af8
child 105240 ce17ac91ffd86946521704d7e43925bdf59fa216
push id14706
push usereakhgari@mozilla.com
push dateTue, 11 Sep 2012 20:39:52 +0000
treeherdermozilla-inbound@d50bf1edaabe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssstangl
bugs684126
milestone9.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
Fix relocation table offset (bug 684126, r=sstangl).
js/src/ion/IonCode.h
--- a/js/src/ion/IonCode.h
+++ b/js/src/ion/IonCode.h
@@ -83,17 +83,17 @@ class IonCode : public gc::Cell
         dataSize_(0),
         relocTableSize_(0)
     { }
 
     uint32 dataOffset() const {
         return insnSize_;
     }
     uint32 relocTableOffset() const {
-        return dataOffset() + relocTableSize_;
+        return dataOffset() + dataSize_;
     }
 
   public:
     uint8 *raw() const {
         return code_;
     }
     size_t instructionsSize() const {
         return insnSize_;