Method object refactor
This commit is contained in:
parent
714bdaef12
commit
715175085e
25 changed files with 420 additions and 529 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue