Method object refactor
This commit is contained in:
parent
add66e6cac
commit
7332e72bb2
25 changed files with 420 additions and 529 deletions
23
Objects/public/primitives/BytecodeObject.hpp
Normal file
23
Objects/public/primitives/BytecodeObject.hpp
Normal 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);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue