making Exec methods non-const, so execution can manage side-information

This commit is contained in:
Vern Paxson 2021-03-18 08:22:55 -07:00
parent c6830193f3
commit 01bf4b8484
4 changed files with 45 additions and 47 deletions

View file

@ -960,7 +960,7 @@ CatchReturnStmt::CatchReturnStmt(StmtPtr _block, NameExprPtr _ret_var)
ret_var = _ret_var;
}
ValPtr CatchReturnStmt::Exec(Frame* f, StmtFlowType& flow) const
ValPtr CatchReturnStmt::Exec(Frame* f, StmtFlowType& flow)
{
RegisterAccess();
@ -1047,7 +1047,7 @@ CheckAnyLenStmt::CheckAnyLenStmt(ExprPtr arg_e, int _expected_len)
expected_len = _expected_len;
}
ValPtr CheckAnyLenStmt::Exec(Frame* f, StmtFlowType& flow) const
ValPtr CheckAnyLenStmt::Exec(Frame* f, StmtFlowType& flow)
{
RegisterAccess();
flow = FLOW_NEXT;