提交 c7f880ed 编写于 作者: D Damien George

py/vm: Don't do unnecessary updates of ip and sp variables.

Neither the ip nor sp variables are used again after the execution of the
RAISE_VARARGS opcode, so they don't need to be updated.
上级 bcfff4fc
......@@ -1118,7 +1118,7 @@ unwind_return:
ENTRY(MP_BC_RAISE_VARARGS): {
MARK_EXC_IP_SELECTIVE();
mp_uint_t unum = *ip++;
mp_uint_t unum = *ip;
mp_obj_t obj;
if (unum == 2) {
mp_warning("exception chaining not supported");
......@@ -1139,7 +1139,7 @@ unwind_return:
RAISE(obj);
}
} else {
obj = POP();
obj = TOP();
}
obj = mp_make_raise_obj(obj);
RAISE(obj);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册