#pragma once #include "OperatoinCodes.hpp" #include "primitives/IntObject.hpp" #include "primitives/StringObject.hpp" #include "Buffer.hpp" #include namespace tp::obj { typedef Object* ConstData; struct ByteCode { Buffer mConstants; Buffer mInstructions; ualni mInstructionIdx = 0; ualni mArgumentsLoaded = 0; ~ByteCode() { for (auto const_obj : mConstants) { NDO->destroy(const_obj.data()); } } }; }