Method object refactor

This commit is contained in:
IlyaShurupov 2024-03-25 13:57:31 +03:00
parent add66e6cac
commit 7332e72bb2
25 changed files with 420 additions and 529 deletions

View file

@ -0,0 +1,23 @@
#pragma once
#include "primitives/StringObject.hpp"
#include "interpreter/ByteCode.hpp"
namespace tp::obj {
struct BytecodeObject : Object {
static ObjectType TypeData;
StringObject* mReadable;
ByteCode mBytecode;
static void constructor(BytecodeObject* self);
static void copy(BytecodeObject* self, BytecodeObject* in);
static void destructor(BytecodeObject* self);
static alni save_size(BytecodeObject* self);
static void save(BytecodeObject* self, ArchiverOut& file_self);
static void load(ArchiverIn& file_self, BytecodeObject* self);
};
}