Lines Matching defs:instr
486 specialize_module_load_attr(PyObject *owner, _Py_CODEUNIT *instr,
489 _PyAttrCache *cache = (_PyAttrCache *)(instr + 1);
522 _Py_SET_OPCODE(*instr, opcode_module);
607 PyObject *owner, _Py_CODEUNIT *instr, PyTypeObject *type,
618 _PyAttrCache *cache = (_PyAttrCache *)(instr + 1);
633 _Py_SET_OPCODE(*instr, values_op);
650 _Py_SET_OPCODE(*instr, hint_op);
656 _Py_Specialize_LoadAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name)
659 _PyAttrCache *cache = (_PyAttrCache *)(instr + 1);
661 int err = specialize_module_load_attr(owner, instr, name, LOAD_ATTR,
707 _Py_SET_OPCODE(*instr, LOAD_ATTR_SLOT);
716 _Py_SET_OPCODE(*instr, LOAD_ATTR_SLOT);
736 owner, instr, type, kind, name,
758 _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name)
761 _PyAttrCache *cache = (_PyAttrCache *)(instr + 1);
800 _Py_SET_OPCODE(*instr, STORE_ATTR_SLOT);
822 owner, instr, type, kind, name,
881 specialize_class_load_method(PyObject *owner, _Py_CODEUNIT *instr,
884 _PyLoadMethodCache *cache = (_PyLoadMethodCache *)(instr + 1);
897 _Py_SET_OPCODE(*instr, LOAD_METHOD_CLASS);
921 _Py_Specialize_LoadMethod(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name)
924 _PyLoadMethodCache *cache = (_PyLoadMethodCache *)(instr + 1);
930 int err = specialize_module_load_attr(owner, instr, name, LOAD_METHOD,
943 int err = specialize_class_load_method(owner, instr, name);
1005 _Py_SET_OPCODE(*instr, LOAD_METHOD_NO_DICT);
1008 _Py_SET_OPCODE(*instr, LOAD_METHOD_WITH_VALUES);
1012 _Py_SET_OPCODE(*instr, LOAD_METHOD_WITH_DICT);
1017 _Py_SET_OPCODE(*instr, LOAD_METHOD_WITH_DICT);
1052 _Py_CODEUNIT *instr, PyObject *name)
1056 _PyLoadGlobalCache *cache = (_PyLoadGlobalCache *)(instr + 1);
1081 _Py_SET_OPCODE(*instr, LOAD_GLOBAL_MODULE);
1117 _Py_SET_OPCODE(*instr, LOAD_GLOBAL_BUILTIN);
1188 PyObject *container, PyObject *sub, _Py_CODEUNIT *instr)
1192 _PyBinarySubscrCache *cache = (_PyBinarySubscrCache *)(instr + 1);
1196 _Py_SET_OPCODE(*instr, BINARY_SUBSCR_LIST_INT);
1205 _Py_SET_OPCODE(*instr, BINARY_SUBSCR_TUPLE_INT);
1213 _Py_SET_OPCODE(*instr, BINARY_SUBSCR_DICT);
1247 _Py_SET_OPCODE(*instr, BINARY_SUBSCR_GETITEM);
1265 _Py_Specialize_StoreSubscr(PyObject *container, PyObject *sub, _Py_CODEUNIT *instr)
1267 _PyStoreSubscrCache *cache = (_PyStoreSubscrCache *)(instr + 1);
1274 _Py_SET_OPCODE(*instr, STORE_SUBSCR_LIST_INT);
1292 _Py_SET_OPCODE(*instr, STORE_SUBSCR_DICT);
1369 specialize_class_call(PyObject *callable, _Py_CODEUNIT *instr, int nargs,
1372 assert(_Py_OPCODE(*instr) == PRECALL_ADAPTIVE);
1381 _Py_SET_OPCODE(*instr, PRECALL_NO_KW_STR_1);
1385 _Py_SET_OPCODE(*instr, PRECALL_NO_KW_TYPE_1);
1389 _Py_SET_OPCODE(*instr, PRECALL_NO_KW_TUPLE_1);
1394 _Py_SET_OPCODE(*instr, PRECALL_BUILTIN_CLASS);
1430 specialize_method_descriptor(PyMethodDescrObject *descr, _Py_CODEUNIT *instr,
1433 assert(_Py_OPCODE(*instr) == PRECALL_ADAPTIVE);
1447 _Py_SET_OPCODE(*instr, PRECALL_NO_KW_METHOD_DESCRIPTOR_NOARGS);
1457 _Py_CODEUNIT next = instr[INLINE_CACHE_ENTRIES_PRECALL + 1
1461 _Py_SET_OPCODE(*instr, PRECALL_NO_KW_LIST_APPEND);
1464 _Py_SET_OPCODE(*instr, PRECALL_NO_KW_METHOD_DESCRIPTOR_O);
1468 _Py_SET_OPCODE(*instr, PRECALL_NO_KW_METHOD_DESCRIPTOR_FAST);
1472 _Py_SET_OPCODE(*instr, PRECALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS);
1481 specialize_py_call(PyFunctionObject *func, _Py_CODEUNIT *instr, int nargs,
1484 _PyCallCache *cache = (_PyCallCache *)(instr + 1);
1485 assert(_Py_OPCODE(*instr) == CALL_ADAPTIVE);
1524 _Py_SET_OPCODE(*instr, CALL_PY_EXACT_ARGS);
1527 _Py_SET_OPCODE(*instr, CALL_PY_WITH_DEFAULTS);
1533 specialize_c_call(PyObject *callable, _Py_CODEUNIT *instr, int nargs,
1536 assert(_Py_OPCODE(*instr) == PRECALL_ADAPTIVE);
1555 _Py_SET_OPCODE(*instr, PRECALL_NO_KW_LEN);
1558 _Py_SET_OPCODE(*instr, PRECALL_NO_KW_BUILTIN_O);
1570 _Py_SET_OPCODE(*instr, PRECALL_NO_KW_ISINSTANCE);
1574 _Py_SET_OPCODE(*instr, PRECALL_NO_KW_BUILTIN_FAST);
1578 _Py_SET_OPCODE(*instr, PRECALL_BUILTIN_FAST_WITH_KEYWORDS);
1631 _Py_Specialize_Precall(PyObject *callable, _Py_CODEUNIT *instr, int nargs,
1635 _PyPrecallCache *cache = (_PyPrecallCache *)(instr + 1);
1638 fail = specialize_c_call(callable, instr, nargs, kwnames);
1641 _Py_SET_OPCODE(*instr, PRECALL_PYFUNC);
1645 fail = specialize_class_call(callable, instr, nargs, kwnames, oparg);
1649 instr, nargs, kwnames, oparg);
1652 _Py_SET_OPCODE(*instr, PRECALL_BOUND_METHOD);
1677 _Py_Specialize_Call(PyObject *callable, _Py_CODEUNIT *instr, int nargs,
1681 _PyCallCache *cache = (_PyCallCache *)(instr + 1);
1684 fail = specialize_py_call((PyFunctionObject *)callable, instr, nargs,
1775 _Py_Specialize_BinaryOp(PyObject *lhs, PyObject *rhs, _Py_CODEUNIT *instr,
1779 _PyBinaryOpCache *cache = (_PyBinaryOpCache *)(instr + 1);
1787 _Py_CODEUNIT next = instr[INLINE_CACHE_ENTRIES_BINARY_OP + 1];
1791 _Py_SET_OPCODE(*instr, BINARY_OP_INPLACE_ADD_UNICODE);
1794 _Py_SET_OPCODE(*instr, BINARY_OP_ADD_UNICODE);
1798 _Py_SET_OPCODE(*instr, BINARY_OP_ADD_INT);
1802 _Py_SET_OPCODE(*instr, BINARY_OP_ADD_FLOAT);
1812 _Py_SET_OPCODE(*instr, BINARY_OP_MULTIPLY_INT);
1816 _Py_SET_OPCODE(*instr, BINARY_OP_MULTIPLY_FLOAT);
1826 _Py_SET_OPCODE(*instr, BINARY_OP_SUBTRACT_INT);
1830 _Py_SET_OPCODE(*instr, BINARY_OP_SUBTRACT_FLOAT);
1841 _Py_SET_OPCODE(*instr, BINARY_OP);
1904 _Py_Specialize_CompareOp(PyObject *lhs, PyObject *rhs, _Py_CODEUNIT *instr,
1908 _PyCompareOpCache *cache = (_PyCompareOpCache *)(instr + 1);
1909 int next_opcode = _Py_OPCODE(instr[INLINE_CACHE_ENTRIES_COMPARE_OP + 1]);
1919 _Py_SET_OPCODE(*instr, COMPARE_OP);
1945 _Py_SET_OPCODE(*instr, COMPARE_OP_FLOAT_JUMP);
1951 _Py_SET_OPCODE(*instr, COMPARE_OP_INT_JUMP);
1966 _Py_SET_OPCODE(*instr, COMPARE_OP_STR_JUMP);
1996 _Py_Specialize_UnpackSequence(PyObject *seq, _Py_CODEUNIT *instr, int oparg)
2000 _PyUnpackSequenceCache *cache = (_PyUnpackSequenceCache *)(instr + 1);
2007 _Py_SET_OPCODE(*instr, UNPACK_SEQUENCE_TWO_TUPLE);
2010 _Py_SET_OPCODE(*instr, UNPACK_SEQUENCE_TUPLE);
2018 _Py_SET_OPCODE(*instr, UNPACK_SEQUENCE_LIST);