Fix typo in Assembler::retarget (bug 684365, r=sstangl).
authorDavid Anderson <danderson@mozilla.com>
Fri, 02 Sep 2011 16:06:01 -0700
changeset 105229 59f959fe18f7b4d97578ccb1b85d147c777fbcfc
parent 105228 c7199a1523c39a6e43b76cadcbd1be4f181b5543
child 105230 1643eac86ad14cdde59cdb349dedac7cc5fbb7ab
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
bugs684365
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 typo in Assembler::retarget (bug 684365, r=sstangl).
js/src/ion/shared/Assembler-x86-shared.h
--- a/js/src/ion/shared/Assembler-x86-shared.h
+++ b/js/src/ion/shared/Assembler-x86-shared.h
@@ -270,17 +270,17 @@ class AssemblerX86Shared
                 JSC::X86Assembler::JmpSrc next;
                 more = masm.nextJump(jmp, &next);
 
                 if (target->bound()) {
                     // The jump can be immediately patched to the correct destination.
                     masm.linkJump(jmp, JmpDst(target->offset()));
                 } else {
                     // Thread the jump list through the unpatched jump targets.
-                    JmpSrc prev = JmpSrc(label->use(jmp.offset()));
+                    JmpSrc prev = JmpSrc(target->use(jmp.offset()));
                     masm.setNextJump(jmp, prev);
                 }
 
                 jmp = next;
             } while (more);
         }
         label->reset();
     }