Correctly restore EP after it has been used by the translation of the TRY instruction.
[GB.JIT] * BUG: Correctly restore EP after it has been used by the translation of the TRY instruction.
This commit is contained in:
parent
a66ce09e79
commit
f0f113da2b
@ -3244,8 +3244,8 @@ _QUIT:
|
|||||||
|
|
||||||
_TRY:
|
_TRY:
|
||||||
|
|
||||||
//declare(&_decl_tp, "VALUE *tp");
|
declare(&_decl_tp, "VALUE *tp");
|
||||||
JIT_print(" EP = sp;\n");
|
JIT_print(" tp = EP; EP = sp;\n");
|
||||||
JIT_print(" TRY {\n");
|
JIT_print(" TRY {\n");
|
||||||
p++;
|
p++;
|
||||||
goto _MAIN;
|
goto _MAIN;
|
||||||
@ -3262,7 +3262,7 @@ _END_TRY:
|
|||||||
JIT_print(" *JIT.got_error = 1;\n");
|
JIT_print(" *JIT.got_error = 1;\n");
|
||||||
JIT_print(" JIT.error_set_last(FALSE);\n");
|
JIT_print(" JIT.error_set_last(FALSE);\n");
|
||||||
JIT_print(" } END_TRY\n");
|
JIT_print(" } END_TRY\n");
|
||||||
JIT_print(" EP = NULL;\n");
|
JIT_print(" EP = tp;\n");
|
||||||
goto _MAIN;
|
goto _MAIN;
|
||||||
|
|
||||||
_CATCH:
|
_CATCH:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user