some refactorings

This commit is contained in:
ProgramSnail 2025-05-11 11:06:15 +03:00
parent aff30ad7c1
commit 1f42c9ff4b
2 changed files with 3 additions and 86 deletions

View file

@ -351,13 +351,7 @@ void analyze(Bytefile *bf, std::vector<size_t> &&add_publics) {
/*uint args_count = */ ip_read_int_unsafe(&current_ip);
// NOTE: done in corresponding CALL/CALLC
// TODO: no stack edit required then (?)
// current_stack_depth -= args_count;
// if (current_stack_depth < 0) {
// ip_failure(saved_current_ip, bf, "not enough elements in stack");
// }
// ++current_stack_depth;
// NOTE: args checks done in corresponding CALL/CALLC
} break;
case Cmd::PATT:
--current_stack_depth;