mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
some fix
This commit is contained in:
parent
41aae44f21
commit
39dd1a8e21
@ -1,5 +1,5 @@
|
|||||||
SRC=$(find src/ -name "*.cpp")
|
SRC=$(find src/ -name "*.cpp")
|
||||||
|
|
||||||
FLAGS="-std=c++17 -O0 -stdlib=libc++ -Iinclude -frtti -Wfatal-errors -g"
|
FLAGS="-std=c++17 -O2 -stdlib=libc++ -Iinclude -frtti -Wfatal-errors -g"
|
||||||
|
|
||||||
clang++ $FLAGS -o main src2/main.cpp $SRC
|
clang++ $FLAGS -o main src2/main.cpp $SRC
|
||||||
|
@ -107,15 +107,16 @@ PyVar VM::__run_top_frame(){
|
|||||||
if(_ceval_on_step) _ceval_on_step(this, frame, byte);
|
if(_ceval_on_step) _ceval_on_step(this, frame, byte);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__NEXT_FRAME:
|
#define DISPATCH() goto __NEXT_STEP;
|
||||||
// cache
|
|
||||||
const CodeObject* co = frame->co;
|
|
||||||
Bytecode byte = frame->next_bytecode();
|
|
||||||
CEVAL_STEP_CALLBACK();
|
|
||||||
|
|
||||||
#define DISPATCH() { byte = frame->next_bytecode(); CEVAL_STEP_CALLBACK(); goto __NEXT_STEP; }
|
__NEXT_FRAME:
|
||||||
|
const CodeObject* co = frame->co;
|
||||||
|
Bytecode byte;
|
||||||
|
|
||||||
__NEXT_STEP:;
|
__NEXT_STEP:;
|
||||||
|
byte = frame->next_bytecode();
|
||||||
|
CEVAL_STEP_CALLBACK();
|
||||||
|
|
||||||
#if PK_DEBUG_CEVAL_STEP
|
#if PK_DEBUG_CEVAL_STEP
|
||||||
__log_s_data();
|
__log_s_data();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user