Skip to content

Commit 44a1ffc

Browse files
committed
Fix Windows test_mmap -- by removing BUILD_SLICE/STORE_SLICE
1 parent e3471da commit 44a1ffc

File tree

3 files changed

+1
-45
lines changed

3 files changed

+1
-45
lines changed

Python/executor_cases.c.h

Lines changed: 0 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/opcode_metadata.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,8 +1135,6 @@ const struct opcode_macro_expansion _PyOpcode_macro_expansion[256] = {
11351135
[UNARY_NEGATIVE] = { .nuops = 1, .uops = { { UNARY_NEGATIVE, 0, 0 } } },
11361136
[UNARY_NOT] = { .nuops = 1, .uops = { { UNARY_NOT, 0, 0 } } },
11371137
[UNARY_INVERT] = { .nuops = 1, .uops = { { UNARY_INVERT, 0, 0 } } },
1138-
[BINARY_SLICE] = { .nuops = 1, .uops = { { BINARY_SLICE, 0, 0 } } },
1139-
[STORE_SLICE] = { .nuops = 1, .uops = { { STORE_SLICE, 0, 0 } } },
11401138
[BINARY_SUBSCR_LIST_INT] = { .nuops = 1, .uops = { { BINARY_SUBSCR_LIST_INT, 0, 0 } } },
11411139
[BINARY_SUBSCR_TUPLE_INT] = { .nuops = 1, .uops = { { BINARY_SUBSCR_TUPLE_INT, 0, 0 } } },
11421140
[BINARY_SUBSCR_DICT] = { .nuops = 1, .uops = { { BINARY_SUBSCR_DICT, 0, 0 } } },

Tools/cases_generator/generate_cases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ def emit_macros(cls, out: Formatter):
314314
"import_from",
315315
"import_name",
316316
"_PyObject_CallNoArgs", # Proxy for BEFORE_WITH
317+
"_PyBuildSlice_ConsumeRefs", # Proxy for BINARY_SLICE, STORE_SLICE
317318
)
318319

319320

0 commit comments

Comments
 (0)