preparing for a new Stmt subclass for ZAM function bodies

This commit is contained in:
Vern Paxson 2021-08-16 10:31:13 -07:00
parent 51fee244c9
commit dbb509448f
2 changed files with 3 additions and 0 deletions

View file

@ -35,6 +35,7 @@ const char* stmt_name(StmtTag t)
"catch-return",
"check-any-length",
"compiled-C++",
"ZAM", "ZAM-resumption",
"null",
};

View file

@ -21,6 +21,8 @@ enum StmtTag {
STMT_CATCH_RETURN, // for reduced InlineExpr's
STMT_CHECK_ANY_LEN, // internal reduced statement
STMT_CPP, // compiled C++
STMT_ZAM, // a ZAM function body
STMT_ZAM_RESUMPTION, // resumes ZAM execution for "when" statements
STMT_NULL
#define NUM_STMTS (int(STMT_NULL) + 1)
};