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

@ -38,7 +38,7 @@ void InterpreterObject::exec(obj::ClassObject* self, tp::InitialierList<Interpre
}
auto method = objects_api::cast<MethodObject>(target);
if (!method || !method->mScript->mBytecode.mInstructions.size()) {
if (!method || !method->mBytecodeLink->mBytecode.mInstructions.size()) {
return;
}
@ -61,7 +61,7 @@ void InterpreterObject::debug() {
}
auto method = objects_api::cast<MethodObject>(target);
if (!method || !method->mScript->mBytecode.mInstructions.size()) {
if (!method || !method->mBytecodeLink->mBytecode.mInstructions.size()) {
return;
}