refactor(furvm): refactor executor

Refs: #12
This commit is contained in:
2026-06-16 14:45:36 +02:00
parent 78acfb6ee2
commit 0dfa8c1c02
4 changed files with 15 additions and 46 deletions
-13
View File
@@ -12,19 +12,6 @@
namespace furvm {
executor::executor(egzekutor, executor_handle id, const context_p& context)
: m_id(id), m_context(context) {}
executor::~executor() {
m_context->m_executors[m_id] = nullptr;
}
executor_p executor::create(const context_p& context) {
auto ex = std::make_shared<executor>(egzekutor{}, context->m_executors.size(), context);
context->m_executors.push_back(ex);
return std::move(ex);
}
void executor::push_frame(const mod_p& mod, function_handle function) {
const auto& func = mod->function_at(function);
if (func->type() != function_t::Normal) throw std::runtime_error("unexpected function type");