mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-87092: move CFG related code from compile.c to flowgraph.c (#103021)
This commit is contained in:
parent
b0422e140d
commit
80163e17d3
14 changed files with 2484 additions and 2399 deletions
2467
Python/compile.c
2467
Python/compile.c
File diff suppressed because it is too large
Load diff
2160
Python/flowgraph.c
Normal file
2160
Python/flowgraph.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -3,7 +3,7 @@
|
|||
// Python/bytecodes.c
|
||||
// Do not edit!
|
||||
|
||||
#ifndef NEED_OPCODE_TABLES
|
||||
#ifndef NEED_OPCODE_METADATA
|
||||
extern int _PyOpcode_num_popped(int opcode, int oparg, bool jump);
|
||||
#else
|
||||
int
|
||||
|
@ -349,7 +349,7 @@ _PyOpcode_num_popped(int opcode, int oparg, bool jump) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifndef NEED_OPCODE_TABLES
|
||||
#ifndef NEED_OPCODE_METADATA
|
||||
extern int _PyOpcode_num_pushed(int opcode, int oparg, bool jump);
|
||||
#else
|
||||
int
|
||||
|
@ -701,7 +701,7 @@ struct opcode_metadata {
|
|||
enum InstructionFormat instr_format;
|
||||
};
|
||||
|
||||
#ifndef NEED_OPCODE_TABLES
|
||||
#ifndef NEED_OPCODE_METADATA
|
||||
extern const struct opcode_metadata _PyOpcode_opcode_metadata[256];
|
||||
#else
|
||||
const struct opcode_metadata _PyOpcode_opcode_metadata[256] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue