diff --git a/plugins/flutter/src/pocketpy.h b/plugins/flutter/src/pocketpy.h index a0b5679c..ab47a31e 100644 --- a/plugins/flutter/src/pocketpy.h +++ b/plugins/flutter/src/pocketpy.h @@ -3080,7 +3080,7 @@ struct PyObject { // currently __name__ is only used for 'type' PyVar _typeName(){ return _type->attribs[__name__]; } - PyObject(PyVar type) : _type(type) {} + PyObject(const PyVar& type) : _type(type) {} virtual ~PyObject() = default; }; diff --git a/src/codeobject.h b/src/codeobject.h index 4cfc06c4..ce100603 100644 --- a/src/codeobject.h +++ b/src/codeobject.h @@ -144,6 +144,10 @@ struct CodeObject { co_consts.push_back(v); return co_consts.size() - 1; } + + void optimize_level_1(){ + + } }; class Frame { diff --git a/src/obj.h b/src/obj.h index 5575b27f..2f51ce5c 100644 --- a/src/obj.h +++ b/src/obj.h @@ -77,7 +77,7 @@ struct PyObject { // currently __name__ is only used for 'type' PyVar _typeName(){ return _type->attribs[__name__]; } - PyObject(PyVar type) : _type(type) {} + PyObject(const PyVar& type) : _type(type) {} virtual ~PyObject() = default; }; diff --git a/src/vm.h b/src/vm.h index 904e0859..92f2ea18 100644 --- a/src/vm.h +++ b/src/vm.h @@ -555,7 +555,7 @@ public: if(_module == nullptr) _module = _main; try { _Code code = compile(source, filename, mode); - // if(filename != "") std::cout << disassemble(code) << std::endl; + if(filename != "") std::cout << disassemble(code) << std::endl; return _exec(code, _module, {}); }catch (const _Error& e){ *_stderr << e.what() << '\n';