Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2228)

Side by Side Diff: cgen/templates/default/load_build_class

Issue 14757: INCA: Inline Caching meets Quickening in Python 3.3
Patch Set: Created 1 year ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cgen/templates/default/load_attr ('k') | cgen/templates/default/load_closure » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 TARGET(LOAD_BUILD_CLASS)
3 {
4 _Py_IDENTIFIER(__build_class__);
5
6 if (PyDict_CheckExact(f->f_builtins)) {
7 x = _PyDict_GetItemId(f->f_builtins, &PyId___build_class__);
8 if (x == NULL) {
9 PyErr_SetString(PyExc_NameError,
10 "__build_class__ not found");
11 goto on_error;;
12 }
13 Py_INCREF(x);
14 }
15 else {
16 PyObject *build_class_str = _PyUnicode_FromId(&PyId___build_clas s__);
17 if (build_class_str == NULL)
18 goto on_error;;
19 x = PyObject_GetItem(f->f_builtins, build_class_str);
20 if (x == NULL) {
21 if (PyErr_ExceptionMatches(PyExc_KeyError))
22 PyErr_SetString(PyExc_NameError,
23 "__build_class__ not found");
24 goto on_error;;
25 }
26 }
27 PUSH(x);
28 goto on_error;;
29 }
OLDNEW
« no previous file with comments | « cgen/templates/default/load_attr ('k') | cgen/templates/default/load_closure » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7