mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
some fix
This commit is contained in:
parent
4bd4ab84dc
commit
ea3e64ec8c
@ -157,7 +157,6 @@ public:
|
|||||||
std::map<std::string_view, CodeObject_> __cached_codes;
|
std::map<std::string_view, CodeObject_> __cached_codes;
|
||||||
std::map<std::string_view, PyVar> __cached_op_funcs;
|
std::map<std::string_view, PyVar> __cached_op_funcs;
|
||||||
FuncDecl_ __dynamic_func_decl;
|
FuncDecl_ __dynamic_func_decl;
|
||||||
InternalException __internal_exception;
|
|
||||||
PyVar __vectorcall_buffer[PK_MAX_CO_VARNAMES];
|
PyVar __vectorcall_buffer[PK_MAX_CO_VARNAMES];
|
||||||
|
|
||||||
#if PK_ENABLE_PROFILER
|
#if PK_ENABLE_PROFILER
|
||||||
|
@ -100,6 +100,7 @@ bool VM::py_ge(PyVar _0, PyVar _1){
|
|||||||
PyVar VM::__run_top_frame(){
|
PyVar VM::__run_top_frame(){
|
||||||
Frame* frame = &callstack.top();
|
Frame* frame = &callstack.top();
|
||||||
const Frame* base_frame = frame;
|
const Frame* base_frame = frame;
|
||||||
|
InternalException __internal_exception;
|
||||||
|
|
||||||
while(true){
|
while(true){
|
||||||
try{
|
try{
|
||||||
@ -1023,7 +1024,7 @@ __NEXT_STEP:
|
|||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
PK_UNREACHABLE();
|
PK_UNREACHABLE();
|
||||||
}catch(InternalException internal){
|
}catch(InternalException internal){
|
||||||
this->__internal_exception = internal;
|
__internal_exception = internal;
|
||||||
if(internal.type == InternalExceptionType::Unhandled){
|
if(internal.type == InternalExceptionType::Unhandled){
|
||||||
PyVar e_obj = POPX();
|
PyVar e_obj = POPX();
|
||||||
Exception& _e = PK_OBJ_GET(Exception, e_obj);
|
Exception& _e = PK_OBJ_GET(Exception, e_obj);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user