some optimize

This commit is contained in:
blueloveTH 2024-03-17 19:10:45 +08:00
parent 0d0261c069
commit f48db51d7c

View File

@ -144,7 +144,7 @@ __NEXT_STEP:;
/*****************************************/ /*****************************************/
TARGET(LOAD_ELLIPSIS) PUSH(Ellipsis); DISPATCH(); TARGET(LOAD_ELLIPSIS) PUSH(Ellipsis); DISPATCH();
TARGET(LOAD_FUNCTION) { TARGET(LOAD_FUNCTION) {
FuncDecl_ decl = co->func_decls[byte.arg]; const FuncDecl_& decl = co->func_decls[byte.arg];
PyObject* obj; PyObject* obj;
if(decl->nested){ if(decl->nested){
NameDict_ captured = frame->_locals.to_namedict(); NameDict_ captured = frame->_locals.to_namedict();