Skip to content

Commit

Permalink
[JIT] Compile MVM_reg_uint16 constants
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw committed Sep 10, 2021
1 parent 49624ae commit 325625c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/jit/core_templates.expr
Expand Up @@ -743,6 +743,7 @@
(carg $1 ptr)) int_sz))))

(template: null (^vmnull))
(template: sp_resumption (^vmnull))

(template: isnull
(or
Expand Down
4 changes: 4 additions & 0 deletions src/jit/expr.c
Expand Up @@ -235,6 +235,10 @@ static MVMint32 MVM_jit_expr_add_const(MVMThreadContext *tc, MVMJitExprTree *tre
constant = opr.lit_i16;
size = sizeof(MVMint16);
break;
case MVM_operand_uint16:
constant = opr.lit_ui16;
size = sizeof(MVMuint16);
break;
case MVM_operand_coderef:
constant = opr.coderef_idx;
size = sizeof(MVMuint16);
Expand Down

0 comments on commit 325625c

Please sign in to comment.