mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
gh-137136: Suppress build warnings when build on Windows with --experimental-jit-interpreter (GH-137137)
This commit is contained in:
+2
-2
@@ -811,7 +811,7 @@ dummy_func(
|
||||
assert(next_instr->op.code == STORE_FAST);
|
||||
next_oparg = next_instr->op.arg;
|
||||
#else
|
||||
next_oparg = CURRENT_OPERAND0();
|
||||
next_oparg = (int)CURRENT_OPERAND0();
|
||||
#endif
|
||||
_PyStackRef *target_local = &GETLOCAL(next_oparg);
|
||||
assert(PyUnicode_CheckExact(left_o));
|
||||
@@ -5250,7 +5250,7 @@ dummy_func(
|
||||
if (frame->lltrace >= 2) {
|
||||
printf("SIDE EXIT: [UOp ");
|
||||
_PyUOpPrint(&next_uop[-1]);
|
||||
printf(", exit %lu, temp %d, target %d -> %s]\n",
|
||||
printf(", exit %tu, temp %d, target %d -> %s]\n",
|
||||
exit - current_executor->exits, exit->temperature.value_and_backoff,
|
||||
(int)(target - _PyFrame_GetBytecode(frame)),
|
||||
_PyOpcode_OpName[target->op.code]);
|
||||
|
||||
Generated
+2
-2
@@ -1226,7 +1226,7 @@
|
||||
assert(next_instr->op.code == STORE_FAST);
|
||||
next_oparg = next_instr->op.arg;
|
||||
#else
|
||||
next_oparg = CURRENT_OPERAND0();
|
||||
next_oparg = (int)CURRENT_OPERAND0();
|
||||
#endif
|
||||
_PyStackRef *target_local = &GETLOCAL(next_oparg);
|
||||
assert(PyUnicode_CheckExact(left_o));
|
||||
@@ -7114,7 +7114,7 @@
|
||||
_PyFrame_SetStackPointer(frame, stack_pointer);
|
||||
printf("SIDE EXIT: [UOp ");
|
||||
_PyUOpPrint(&next_uop[-1]);
|
||||
printf(", exit %lu, temp %d, target %d -> %s]\n",
|
||||
printf(", exit %tu, temp %d, target %d -> %s]\n",
|
||||
exit - current_executor->exits, exit->temperature.value_and_backoff,
|
||||
(int)(target - _PyFrame_GetBytecode(frame)),
|
||||
_PyOpcode_OpName[target->op.code]);
|
||||
|
||||
Generated
+1
-1
@@ -371,7 +371,7 @@
|
||||
assert(next_instr->op.code == STORE_FAST);
|
||||
next_oparg = next_instr->op.arg;
|
||||
#else
|
||||
next_oparg = CURRENT_OPERAND0();
|
||||
next_oparg = (int)CURRENT_OPERAND0();
|
||||
#endif
|
||||
_PyStackRef *target_local = &GETLOCAL(next_oparg);
|
||||
assert(PyUnicode_CheckExact(left_o));
|
||||
|
||||
@@ -642,7 +642,7 @@ remove_unneeded_uops(_PyUOpInstruction *buffer, int buffer_size)
|
||||
opcode = buffer[pc].opcode = op_without_pop[opcode];
|
||||
if (op_without_pop[last->opcode]) {
|
||||
opcode = last->opcode;
|
||||
pc = last - buffer;
|
||||
pc = (int)(last - buffer);
|
||||
}
|
||||
}
|
||||
else if (last->opcode == _PUSH_NULL) {
|
||||
|
||||
@@ -316,7 +316,7 @@ dummy_func(void) {
|
||||
assert(PyLong_CheckExact(sym_get_const(ctx, sub_st)));
|
||||
long index = PyLong_AsLong(sym_get_const(ctx, sub_st));
|
||||
assert(index >= 0);
|
||||
int tuple_length = sym_tuple_length(tuple_st);
|
||||
Py_ssize_t tuple_length = sym_tuple_length(tuple_st);
|
||||
if (tuple_length == -1) {
|
||||
// Unknown length
|
||||
res = sym_new_not_null(ctx);
|
||||
@@ -1166,9 +1166,9 @@ dummy_func(void) {
|
||||
|
||||
op(_CALL_LEN, (callable, null, arg -- res)) {
|
||||
res = sym_new_type(ctx, &PyLong_Type);
|
||||
int tuple_length = sym_tuple_length(arg);
|
||||
Py_ssize_t tuple_length = sym_tuple_length(arg);
|
||||
if (tuple_length >= 0) {
|
||||
PyObject *temp = PyLong_FromLong(tuple_length);
|
||||
PyObject *temp = PyLong_FromSsize_t(tuple_length);
|
||||
if (temp == NULL) {
|
||||
goto error;
|
||||
}
|
||||
@@ -1182,13 +1182,13 @@ dummy_func(void) {
|
||||
}
|
||||
|
||||
op(_GET_LEN, (obj -- obj, len)) {
|
||||
int tuple_length = sym_tuple_length(obj);
|
||||
Py_ssize_t tuple_length = sym_tuple_length(obj);
|
||||
if (tuple_length == -1) {
|
||||
len = sym_new_type(ctx, &PyLong_Type);
|
||||
}
|
||||
else {
|
||||
assert(tuple_length >= 0);
|
||||
PyObject *temp = PyLong_FromLong(tuple_length);
|
||||
PyObject *temp = PyLong_FromSsize_t(tuple_length);
|
||||
if (temp == NULL) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
Generated
+5
-5
@@ -938,7 +938,7 @@
|
||||
assert(PyLong_CheckExact(sym_get_const(ctx, sub_st)));
|
||||
long index = PyLong_AsLong(sym_get_const(ctx, sub_st));
|
||||
assert(index >= 0);
|
||||
int tuple_length = sym_tuple_length(tuple_st);
|
||||
Py_ssize_t tuple_length = sym_tuple_length(tuple_st);
|
||||
if (tuple_length == -1) {
|
||||
res = sym_new_not_null(ctx);
|
||||
}
|
||||
@@ -1899,13 +1899,13 @@
|
||||
JitOptRef obj;
|
||||
JitOptRef len;
|
||||
obj = stack_pointer[-1];
|
||||
int tuple_length = sym_tuple_length(obj);
|
||||
Py_ssize_t tuple_length = sym_tuple_length(obj);
|
||||
if (tuple_length == -1) {
|
||||
len = sym_new_type(ctx, &PyLong_Type);
|
||||
}
|
||||
else {
|
||||
assert(tuple_length >= 0);
|
||||
PyObject *temp = PyLong_FromLong(tuple_length);
|
||||
PyObject *temp = PyLong_FromSsize_t(tuple_length);
|
||||
if (temp == NULL) {
|
||||
goto error;
|
||||
}
|
||||
@@ -2618,9 +2618,9 @@
|
||||
JitOptRef res;
|
||||
arg = stack_pointer[-1];
|
||||
res = sym_new_type(ctx, &PyLong_Type);
|
||||
int tuple_length = sym_tuple_length(arg);
|
||||
Py_ssize_t tuple_length = sym_tuple_length(arg);
|
||||
if (tuple_length >= 0) {
|
||||
PyObject *temp = PyLong_FromLong(tuple_length);
|
||||
PyObject *temp = PyLong_FromSsize_t(tuple_length);
|
||||
if (temp == NULL) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
@@ -667,7 +667,7 @@ _Py_uop_sym_new_tuple(JitOptContext *ctx, int size, JitOptRef *args)
|
||||
}
|
||||
|
||||
JitOptRef
|
||||
_Py_uop_sym_tuple_getitem(JitOptContext *ctx, JitOptRef ref, int item)
|
||||
_Py_uop_sym_tuple_getitem(JitOptContext *ctx, JitOptRef ref, Py_ssize_t item)
|
||||
{
|
||||
JitOptSymbol *sym = PyJitRef_Unwrap(ref);
|
||||
assert(item >= 0);
|
||||
@@ -683,7 +683,7 @@ _Py_uop_sym_tuple_getitem(JitOptContext *ctx, JitOptRef ref, int item)
|
||||
return _Py_uop_sym_new_not_null(ctx);
|
||||
}
|
||||
|
||||
int
|
||||
Py_ssize_t
|
||||
_Py_uop_sym_tuple_length(JitOptRef ref)
|
||||
{
|
||||
JitOptSymbol *sym = PyJitRef_Unwrap(ref);
|
||||
|
||||
Reference in New Issue
Block a user