Skip to content

Commit

Permalink
jit bugfix (close #60)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed May 6, 2017
1 parent 25ffdda commit 6e27e0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -2703,7 +2703,7 @@ int hl_jit_function( jit_ctx *ctx, hl_module *m, hl_function *f ) {
break;
default:
size = pad_before_call(ctx,HL_WSIZE*4);
op64(ctx,PUSH,fetch(rb),UNUSED);
push_reg(ctx,rb);
op64(ctx,MOV,r,pconst64(&p,(int_val)rb->t));
op64(ctx,PUSH,r,UNUSED);
break;
Expand All @@ -2717,6 +2717,7 @@ int hl_jit_function( jit_ctx *ctx, hl_module *m, hl_function *f ) {
patch_jump(ctx,jhasfield);
copy_from(ctx, pmem(&p,(CpuReg)r->id,0), rb);
patch_jump(ctx,jend);
scratch(rb->current);
}
break;
default:
Expand Down

0 comments on commit 6e27e0b

Please sign in to comment.