summaryrefslogtreecommitdiff
path: root/src/lj_asm_x86.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-06-28 23:23:34 +0200
committerMike Pall <mike>2011-06-28 23:23:34 +0200
commitdeeb8196c4d4085f3cc5a3389b568de7da739190 (patch)
tree6b5e9840f785f3fff3348ef1c9aee494cdf06431 /src/lj_asm_x86.h
parent3dbae4ffc2ba8f6ebf8adf86742521bce6dbf8f8 (diff)
downloadluajit-deeb8196c4d4085f3cc5a3389b568de7da739190.tar.gz
luajit-deeb8196c4d4085f3cc5a3389b568de7da739190.tar.bz2
luajit-deeb8196c4d4085f3cc5a3389b568de7da739190.zip
Reorganize trace linking and track link types.
Diffstat (limited to 'src/lj_asm_x86.h')
-rw-r--r--src/lj_asm_x86.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h
index 141957c7..0803ecef 100644
--- a/src/lj_asm_x86.h
+++ b/src/lj_asm_x86.h
@@ -2418,8 +2418,7 @@ static void asm_tail_fixup(ASMState *as, TraceNo lnk)
2418 } 2418 }
2419 } 2419 }
2420 /* Patch exit branch. */ 2420 /* Patch exit branch. */
2421 target = lnk == TRACE_INTERP ? (MCode *)lj_vm_exit_interp : 2421 target = lnk ? traceref(as->J, lnk)->mcode : (MCode *)lj_vm_exit_interp;
2422 traceref(as->J, lnk)->mcode;
2423 *(int32_t *)(p-4) = jmprel(p, target); 2422 *(int32_t *)(p-4) = jmprel(p, target);
2424 p[-5] = XI_JMP; 2423 p[-5] = XI_JMP;
2425 /* Drop unused mcode tail. Fill with NOPs to make the prefetcher happy. */ 2424 /* Drop unused mcode tail. Fill with NOPs to make the prefetcher happy. */