diff options
author | Mike Pall <mike> | 2012-05-07 23:16:19 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-05-07 23:16:19 +0200 |
commit | 0d824b7d1417dbb89468d2b6093c2fad127fcc06 (patch) | |
tree | c0817b217d91491e05c80422ff936460331fa8f2 /src/lj_emit_x86.h | |
parent | afc17b3c1aafbd056c2bbb10ef937ebc10de07ee (diff) | |
download | luajit2-0d824b7d1417dbb89468d2b6093c2fad127fcc06.tar.gz |
Fix PHI stack slot syncing.
Diffstat (limited to 'src/lj_emit_x86.h')
-rw-r--r-- | src/lj_emit_x86.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lj_emit_x86.h b/src/lj_emit_x86.h index 4f3a08a1..dfb70574 100644 --- a/src/lj_emit_x86.h +++ b/src/lj_emit_x86.h @@ -383,6 +383,15 @@ static void emit_jcc(ASMState *as, int cc, MCode *target) as->mcp = p - 6; } +/* jmp target */ +static void emit_jmp(ASMState *as, MCode *target) +{ + MCode *p = as->mcp; + *(int32_t *)(p-4) = jmprel(p, target); + p[-5] = XI_JMP; + as->mcp = p - 5; +} + /* call target */ static void emit_call_(ASMState *as, MCode *target) { |