Permalink
Browse files

Remove redundant and dangerous 'rooting' construct

Templates used to be able to enforce the 'rooting' of certain nodes
so that they'd be compiled in a certain order; a feature that was used
only for LET declarations. As LET declarations now compile via DO blocks
instead, this is no longer necessary.
  • Loading branch information...
bdw committed Apr 10, 2017
1 parent 7fb1b10 commit 46b117fa0ffd4a11b6a8662ab651f6ab3414e5e9
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/jit/expr.c
View
@@ -297,10 +297,6 @@ MVMint32 MVM_jit_expr_apply_template(MVMThreadContext *tc, MVMJitExprTree *tree,
/* add operand node into the nodes */
tree->nodes[num+i] = operands[template->code[i]];
break;
- case 'r':
- /* add a root */
- MVM_VECTOR_PUSH(tree->roots, num+i);
- /* fall through */
default:
/* copy from template to nodes */
tree->nodes[num+i] = template->code[i];

0 comments on commit 46b117f

Please sign in to comment.