TCO to the max!

Close #446.

    Currently tested by disassembling and tracing various recursive jq
    programs by hand under valgrind.  An improved test framework that
    can test for errors and specific bytecode patterns is in
    development.
This commit is contained in:
Nicolas Williams committed 2014-06-30 23:41:20 -05:00
1 parent e1c5a2f575
commit 436941d48b
4 files changed
+81 -18

No files matched your search

+1
View File
@@ -27,6 +27,7 @@ OP(CALL_BUILTIN, CFUNC, -1, 1)
OP(CALL_JQ, UFUNC, 1, 1)
OP(RET, NONE, 1, 1)
OP(TAIL_CALL_JQ, UFUNC, 1, 1)
OP(CLOSURE_PARAM, DEFINITION, 0, 0)
OP(CLOSURE_REF, CLOSURE_REF_IMM, 0, 0)