Skip to content

Commit db2ef21

Browse files
yoneymeta-codesync[bot]
authored andcommitted
Regen 3.14
Reviewed By: jbower-fb Differential Revision: D99895253 fbshipit-source-id: 17ed786da77e938f5014d31d10cd67c23de738ef
1 parent d38306d commit db2ef21

1 file changed

Lines changed: 43 additions & 13 deletions

File tree

cinderx/Interpreter/3.14/Includes/generated_cases.c.h

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6446,7 +6446,7 @@
64466446
_PyFrame_SetStackPointer(frame, stack_pointer);
64476447
specialize_with_value(next_instr, func, INVOKE_FUNCTION_CACHED, 0, 0);
64486448
stack_pointer = _PyFrame_GetStackPointer(frame);
6449-
} else {
6449+
} else if (_Py_IsImmortal(container)) {
64506450
_PyFrame_SetStackPointer(frame, stack_pointer);
64516451
PyObject** funcptr = _PyClassLoader_ResolveIndirectPtr(target);
64526452
stack_pointer = _PyFrame_GetStackPointer(frame);
@@ -11009,21 +11009,36 @@
1100911009
assert(_PyOpcode_Deopt[opcode] == (LOAD_GLOBAL));
1101011010
JUMP_TO_PREDICTED(LOAD_GLOBAL);
1101111011
}
11012-
#ifdef META_PYTHON
11013-
if (PyLazyImport_CheckExact(res_o)) {
11012+
#if Py_GIL_DISABLED
11013+
int increfed = _Py_TryIncrefCompareStackRef(&entries[index].me_value, res_o, &res);
11014+
if (!increfed) {
1101411015
UPDATE_MISS_STATS(LOAD_GLOBAL);
1101511016
assert(_PyOpcode_Deopt[opcode] == (LOAD_GLOBAL));
1101611017
JUMP_TO_PREDICTED(LOAD_GLOBAL);
1101711018
}
11019+
#ifdef META_PYTHON
11020+
if (PyLazyImport_CheckExact(PyStackRef_AsPyObjectBorrow(res))) {
11021+
stack_pointer[0] = res;
11022+
stack_pointer += 1;
11023+
assert(WITHIN_STACK_BOUNDS());
11024+
_PyFrame_SetStackPointer(frame, stack_pointer);
11025+
PyStackRef_CLOSE(res);
11026+
stack_pointer = _PyFrame_GetStackPointer(frame);
11027+
if (true) {
11028+
UPDATE_MISS_STATS(LOAD_GLOBAL);
11029+
assert(_PyOpcode_Deopt[opcode] == (LOAD_GLOBAL));
11030+
JUMP_TO_PREDICTED(LOAD_GLOBAL);
11031+
}
11032+
}
1101811033
#endif
11019-
#if Py_GIL_DISABLED
11020-
int increfed = _Py_TryIncrefCompareStackRef(&entries[index].me_value, res_o, &res);
11021-
if (!increfed) {
11034+
#else
11035+
#ifdef META_PYTHON
11036+
if (PyLazyImport_CheckExact(res_o)) {
1102211037
UPDATE_MISS_STATS(LOAD_GLOBAL);
1102311038
assert(_PyOpcode_Deopt[opcode] == (LOAD_GLOBAL));
1102411039
JUMP_TO_PREDICTED(LOAD_GLOBAL);
1102511040
}
11026-
#else
11041+
#endif
1102711042
res = PyStackRef_FromPyObjectNew(res_o);
1102811043
#endif
1102911044
STAT_INC(LOAD_GLOBAL, hit);
@@ -11083,21 +11098,36 @@
1108311098
assert(_PyOpcode_Deopt[opcode] == (LOAD_GLOBAL));
1108411099
JUMP_TO_PREDICTED(LOAD_GLOBAL);
1108511100
}
11086-
#ifdef META_PYTHON
11087-
if (PyLazyImport_CheckExact(res_o)) {
11101+
#if Py_GIL_DISABLED
11102+
int increfed = _Py_TryIncrefCompareStackRef(&entries[index].me_value, res_o, &res);
11103+
if (!increfed) {
1108811104
UPDATE_MISS_STATS(LOAD_GLOBAL);
1108911105
assert(_PyOpcode_Deopt[opcode] == (LOAD_GLOBAL));
1109011106
JUMP_TO_PREDICTED(LOAD_GLOBAL);
1109111107
}
11108+
#ifdef META_PYTHON
11109+
if (PyLazyImport_CheckExact(PyStackRef_AsPyObjectBorrow(res))) {
11110+
stack_pointer[0] = res;
11111+
stack_pointer += 1;
11112+
assert(WITHIN_STACK_BOUNDS());
11113+
_PyFrame_SetStackPointer(frame, stack_pointer);
11114+
PyStackRef_CLOSE(res);
11115+
stack_pointer = _PyFrame_GetStackPointer(frame);
11116+
if (true) {
11117+
UPDATE_MISS_STATS(LOAD_GLOBAL);
11118+
assert(_PyOpcode_Deopt[opcode] == (LOAD_GLOBAL));
11119+
JUMP_TO_PREDICTED(LOAD_GLOBAL);
11120+
}
11121+
}
1109211122
#endif
11093-
#if Py_GIL_DISABLED
11094-
int increfed = _Py_TryIncrefCompareStackRef(&entries[index].me_value, res_o, &res);
11095-
if (!increfed) {
11123+
#else
11124+
#ifdef META_PYTHON
11125+
if (PyLazyImport_CheckExact(res_o)) {
1109611126
UPDATE_MISS_STATS(LOAD_GLOBAL);
1109711127
assert(_PyOpcode_Deopt[opcode] == (LOAD_GLOBAL));
1109811128
JUMP_TO_PREDICTED(LOAD_GLOBAL);
1109911129
}
11100-
#else
11130+
#endif
1110111131
res = PyStackRef_FromPyObjectNew(res_o);
1110211132
#endif
1110311133
STAT_INC(LOAD_GLOBAL, hit);

0 commit comments

Comments
 (0)