assert(call_shape.kwnames == NULL);
#ifdef Py_STATS
extern int _PySpecialization_ClassifyCallable(PyObject *);
- _py_stats.opcode_stats[PRECALL_FUNCTION].specialization.failure++;
- _py_stats.opcode_stats[PRECALL_FUNCTION].specialization.failure_kinds[_PySpecialization_ClassifyCallable(call_shape.callable)]++;
+ SpecializationStats *stats =
+ &_py_stats.opcode_stats[PRECALL_FUNCTION].specialization;
+ stats->failure++;
+ int kind = _PySpecialization_ClassifyCallable(call_shape.callable);
+ stats->failure_kinds[kind]++;
#endif
DISPATCH();
}
call_shape.total_args = nargs;
assert(call_shape.kwnames == NULL);
+#ifdef Py_STATS
+ extern int _PySpecialization_ClassifyCallable(PyObject *);
+ SpecializationStats *stats =
+ &_py_stats.opcode_stats[PRECALL_METHOD].specialization;
+ stats->failure++;
+ int kind = _PySpecialization_ClassifyCallable(call_shape.callable);
+ stats->failure_kinds[kind]++;
+#endif
DISPATCH();
}
* even though we don't specialize them yet. */
fprintf(out, " opcode[%d].specializable : 1\n", FOR_ITER);
fprintf(out, " opcode[%d].specializable : 1\n", PRECALL_FUNCTION);
+ fprintf(out, " opcode[%d].specializable : 1\n", PRECALL_METHOD);
fprintf(out, " opcode[%d].specializable : 1\n", UNPACK_SEQUENCE);
for (int i = 0; i < 256; i++) {
if (adaptive_opcodes[i]) {