(void)owner;
}
+ op(_LOAD_ATTR_METHOD_WITH_VALUES, (descr/4, owner -- attr, self if (1))) {
+ OUT_OF_SPACE_IF_NULL(attr = sym_new_known_notnull(ctx));
+ OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
+ }
+
+ op(_LOAD_ATTR_METHOD_NO_DICT, (descr/4, owner -- attr, self if (1))) {
+ OUT_OF_SPACE_IF_NULL(attr = sym_new_known_notnull(ctx));
+ OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
+ }
+
+ op(_LOAD_ATTR_METHOD_LAZY_DICT, (descr/4, owner -- attr, self if (1))) {
+ OUT_OF_SPACE_IF_NULL(attr = sym_new_known_notnull(ctx));
+ OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
+ }
+
+ op(_INIT_CALL_BOUND_METHOD_EXACT_ARGS, (callable, unused, unused[oparg] -- func, self, unused[oparg])) {
+ OUT_OF_SPACE_IF_NULL(func = sym_new_known_notnull(ctx));
+ OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
+ }
+
+
op(_CHECK_FUNCTION_EXACT_ARGS, (func_version/2, callable, self_or_null, unused[oparg] -- callable, self_or_null, unused[oparg])) {
sym_set_type(callable, &PyFunction_Type);
(void)self_or_null;
}
case _LOAD_ATTR_METHOD_WITH_VALUES: {
+ _Py_UOpsSymType *owner;
_Py_UOpsSymType *attr;
_Py_UOpsSymType *self = NULL;
- attr = sym_new_unknown(ctx);
- if (attr == NULL) goto out_of_space;
- self = sym_new_unknown(ctx);
- if (self == NULL) goto out_of_space;
+ owner = stack_pointer[-1];
+ PyObject *descr = (PyObject *)this_instr->operand;
+ OUT_OF_SPACE_IF_NULL(attr = sym_new_known_notnull(ctx));
+ OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
stack_pointer[-1] = attr;
stack_pointer[0] = self;
stack_pointer += 1;
}
case _LOAD_ATTR_METHOD_NO_DICT: {
+ _Py_UOpsSymType *owner;
_Py_UOpsSymType *attr;
_Py_UOpsSymType *self = NULL;
- attr = sym_new_unknown(ctx);
- if (attr == NULL) goto out_of_space;
- self = sym_new_unknown(ctx);
- if (self == NULL) goto out_of_space;
+ owner = stack_pointer[-1];
+ PyObject *descr = (PyObject *)this_instr->operand;
+ OUT_OF_SPACE_IF_NULL(attr = sym_new_known_notnull(ctx));
+ OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
stack_pointer[-1] = attr;
stack_pointer[0] = self;
stack_pointer += 1;
}
case _LOAD_ATTR_METHOD_LAZY_DICT: {
+ _Py_UOpsSymType *owner;
_Py_UOpsSymType *attr;
_Py_UOpsSymType *self = NULL;
- attr = sym_new_unknown(ctx);
- if (attr == NULL) goto out_of_space;
- self = sym_new_unknown(ctx);
- if (self == NULL) goto out_of_space;
+ owner = stack_pointer[-1];
+ PyObject *descr = (PyObject *)this_instr->operand;
+ OUT_OF_SPACE_IF_NULL(attr = sym_new_known_notnull(ctx));
+ OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
stack_pointer[-1] = attr;
stack_pointer[0] = self;
stack_pointer += 1;
}
case _INIT_CALL_BOUND_METHOD_EXACT_ARGS: {
+ _Py_UOpsSymType *callable;
_Py_UOpsSymType *func;
_Py_UOpsSymType *self;
- func = sym_new_unknown(ctx);
- if (func == NULL) goto out_of_space;
- self = sym_new_unknown(ctx);
- if (self == NULL) goto out_of_space;
+ callable = stack_pointer[-2 - oparg];
+ OUT_OF_SPACE_IF_NULL(func = sym_new_known_notnull(ctx));
+ OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
stack_pointer[-2 - oparg] = func;
stack_pointer[-1 - oparg] = self;
break;