diff options
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) | |||
383 | as->mcp = p - 6; | 383 | as->mcp = p - 6; |
384 | } | 384 | } |
385 | 385 | ||
386 | /* jmp target */ | ||
387 | static void emit_jmp(ASMState *as, MCode *target) | ||
388 | { | ||
389 | MCode *p = as->mcp; | ||
390 | *(int32_t *)(p-4) = jmprel(p, target); | ||
391 | p[-5] = XI_JMP; | ||
392 | as->mcp = p - 5; | ||
393 | } | ||
394 | |||
386 | /* call target */ | 395 | /* call target */ |
387 | static void emit_call_(ASMState *as, MCode *target) | 396 | static void emit_call_(ASMState *as, MCode *target) |
388 | { | 397 | { |