diff options
author | penguin_wwy <940375606@qq.com> | 2023-02-07 22:32:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 22:32:21 (GMT) |
commit | 753fc8a5d64369cd228c3e43fef1811ac3cfde83 (patch) | |
tree | a71d295db633dbe497aa5461d0a410e2792c0e22 /Python/opcode_metadata.h | |
parent | 0d3d5007b136ff1bc0faa960d6526e047dd92396 (diff) | |
download | cpython-753fc8a5d64369cd228c3e43fef1811ac3cfde83.zip cpython-753fc8a5d64369cd228c3e43fef1811ac3cfde83.tar.gz cpython-753fc8a5d64369cd228c3e43fef1811ac3cfde83.tar.bz2 |
gh-101632: Add the new RETURN_CONST opcode (#101633)
Diffstat (limited to 'Python/opcode_metadata.h')
-rw-r--r-- | Python/opcode_metadata.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/opcode_metadata.h b/Python/opcode_metadata.h index d258535..bae5492 100644 --- a/Python/opcode_metadata.h +++ b/Python/opcode_metadata.h @@ -92,6 +92,8 @@ _PyOpcode_num_popped(int opcode, int oparg, bool jump) { return 1; case RETURN_VALUE: return 1; + case RETURN_CONST: + return 0; case GET_AITER: return 1; case GET_ANEXT: @@ -438,6 +440,8 @@ _PyOpcode_num_pushed(int opcode, int oparg, bool jump) { return 0; case RETURN_VALUE: return 0; + case RETURN_CONST: + return 0; case GET_AITER: return 1; case GET_ANEXT: @@ -745,6 +749,7 @@ struct opcode_metadata { [RAISE_VARARGS] = { DIR_NONE, DIR_NONE, DIR_NONE, true, INSTR_FMT_IB }, [INTERPRETER_EXIT] = { DIR_NONE, DIR_NONE, DIR_NONE, true, INSTR_FMT_IX }, [RETURN_VALUE] = { DIR_NONE, DIR_NONE, DIR_NONE, true, INSTR_FMT_IX }, + [RETURN_CONST] = { DIR_NONE, DIR_NONE, DIR_NONE, true, INSTR_FMT_IB }, [GET_AITER] = { DIR_NONE, DIR_NONE, DIR_NONE, true, INSTR_FMT_IX }, [GET_ANEXT] = { DIR_NONE, DIR_NONE, DIR_NONE, true, INSTR_FMT_IX }, [GET_AWAITABLE] = { DIR_NONE, DIR_NONE, DIR_NONE, true, INSTR_FMT_IB }, |